HHH-4886 Merge minor change from IngresDialect.java from 3.3.2 for Ingres 9.2 compatibility
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18709 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
8478d5b44b
commit
71127daf09
|
@ -33,11 +33,11 @@ import org.hibernate.dialect.function.StandardSQLFunction;
|
|||
import org.hibernate.dialect.function.VarArgsSQLFunction;
|
||||
|
||||
/**
|
||||
* An Ingres SQL dialect.
|
||||
* An SQL dialect for Ingres 9.2.
|
||||
* <p/>
|
||||
* Known limitations:
|
||||
* - only supports simple constants or columns on the left side of an IN, making (1,2,3) in (...) or (<subselect) in (...) non-supported
|
||||
* - supports only 31 digits in decimal
|
||||
* - only supports simple constants or columns on the left side of an IN, making (1,2,3) in (...) or (<subselect>) in (...) non-supported
|
||||
* - supports only 39 digits in decimal
|
||||
*
|
||||
* @author Ian Booth, Bruce Lunsford, Max Rydahl Andersen
|
||||
*/
|
||||
|
@ -100,6 +100,7 @@ public class IngresDialect extends Dialect {
|
|||
registerFunction( "intextract", new StandardSQLFunction( "intextract", Hibernate.INTEGER ) );
|
||||
registerFunction( "left", new StandardSQLFunction( "left", Hibernate.STRING ) );
|
||||
registerFunction( "locate", new SQLFunctionTemplate( Hibernate.LONG, "locate(?1, ?2)" ) );
|
||||
registerFunction( "length", new StandardSQLFunction( "length", Hibernate.LONG ) );
|
||||
registerFunction( "ln", new StandardSQLFunction( "ln", Hibernate.DOUBLE ) );
|
||||
registerFunction( "log", new StandardSQLFunction( "log", Hibernate.DOUBLE ) );
|
||||
registerFunction( "lower", new StandardSQLFunction( "lower" ) );
|
||||
|
|
Loading…
Reference in New Issue