Saturday, 3 May
2008
Sat, 3 May
'08
3:11 p.m.
Author: d.plentz
Date: 2008-05-03 16:11:12 -0400 (Sat, 03 May 2008)
New Revision: 14641
Modified:
core/trunk/core/src/main/java/org/hibernate/dialect/H2Dialect.java
Log:
[HHH-2683] "datediff" is declared as NoArgSQLFunction in H2Dialect, but actually
accepts 3 arguments
Modified: core/trunk/core/src/main/java/org/hibernate/dialect/H2Dialect.java
===================================================================
--- core/trunk/core/src/main/java/org/hibernate/dialect/H2Dialect.java 2008-05-03 03:30:16
UTC (rev 14640)
+++ core/trunk/core/src/main/java/org/hibernate/dialect/H2Dialect.java 2008-05-03 20:11:12
UTC (rev 14641)
@@ -132,7 +132,7 @@
registerFunction("current_date", new
NoArgSQLFunction("current_date", Hibernate.DATE));
registerFunction("current_time", new
NoArgSQLFunction("current_time", Hibernate.TIME));
registerFunction("current_timestamp", new
NoArgSQLFunction("current_timestamp", Hibernate.TIMESTAMP));
- registerFunction("datediff", new NoArgSQLFunction("datediff",
Hibernate.INTEGER));
+ registerFunction("datediff", new
StandardSQLFunction("datediff", Hibernate.INTEGER));
registerFunction("dayname", new
StandardSQLFunction("dayname", Hibernate.STRING));
registerFunction("dayofmonth", new
StandardSQLFunction("dayofmonth", Hibernate.INTEGER));
registerFunction("dayofweek", new
StandardSQLFunction("dayofweek", Hibernate.INTEGER));
Show replies by date