[hibernate-commits] Hibernate SVN: r14641 - core/trunk/core/src/main/java/org/hibernate/dialect.
hibernate-commits at lists.jboss.org
hibernate-commits at lists.jboss.org
Sat May 3 16:11:13 EDT 2008
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));
More information about the hibernate-commits
mailing list