We're updating the issue view to help you get more done. 

FirebirdDialect: current_date() function

Description

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.

Environment

3.3.1, Firebird 1.5

Status

Assignee

Brett Meyer

Reporter

Rafael Santini

Fix versions

Components

Affects versions

3.3.1

Priority

Major