[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-3788) FirebirdDialect: current_date() function
Diego Plentz (JIRA)
noreply at atlassian.com
Tue May 5 15:49:17 EDT 2009
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=33100#action_33100 ]
Diego Plentz commented on HHH-3788:
-----------------------------------
Rafael, could you provide a patch?
> 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