[HHH-2683] "datediff" is declared as NoArgSQLFunction in H2Dialect, but actually accepts 3 arguments

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@14641 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Diego Plentz 2008-05-03 20:11:12 +00:00
parent 6bc9024e7c
commit fba6c3e6b5
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ public class H2Dialect extends Dialect {
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));