[hibernate-issues] [Hibernate-JIRA] Created: (HHH-3788) FirebirdDialect: current_date() function

Rafael Santini (JIRA) noreply at atlassian.com
Thu Feb 26 12:44:38 EST 2009


FirebirdDialect: current_date() function
----------------------------------------

                 Key: HHH-3788
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3788
             Project: Hibernate Core
          Issue Type: Bug
          Components: query-hql
    Affects Versions: 3.3.1
         Environment: 3.3.1, Firebird 1.5
            Reporter: Rafael Santini


The FirebirdDialect does not supports current_date() function. A select like "select * from test where dt < current_date()" causes the following exception:

---

Caused by: org.firebirdsql.jdbc.FBSQLException: GDS Exception. 335544569. Dynamic SQL Error
SQL error code = -104
Token unknown - line 1, column X
(

---

In MySQLDialect.java there is:

registerFunction("current_date", new NoArgSQLFunction("current_date", Hibernate.DATE, false) );

But in InterbaseDialect.java or FirebirdDialect.java there is not the current_date function.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list