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

Rafael Santini (JIRA) noreply at atlassian.com
Tue May 5 16:13:20 EDT 2009


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3788?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rafael Santini updated HHH-3788:
--------------------------------

    Attachment: InterbaseDialect.patch

The patch can be simple like this.

> 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
>         Attachments: InterbaseDialect.patch
>
>
> 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