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:
Strong Liu 2010-02-06 06:33:14 +00:00
parent 8478d5b44b
commit 71127daf09
1 changed files with 4 additions and 3 deletions

View File

@ -33,11 +33,11 @@ import org.hibernate.dialect.function.StandardSQLFunction;
import org.hibernate.dialect.function.VarArgsSQLFunction; import org.hibernate.dialect.function.VarArgsSQLFunction;
/** /**
* An Ingres SQL dialect. * An SQL dialect for Ingres 9.2.
* <p/> * <p/>
* Known limitations: * 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 * - only supports simple constants or columns on the left side of an IN, making (1,2,3) in (...) or (&lt;subselect&gt;) in (...) non-supported
* - supports only 31 digits in decimal * - supports only 39 digits in decimal
* *
* @author Ian Booth, Bruce Lunsford, Max Rydahl Andersen * @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( "intextract", new StandardSQLFunction( "intextract", Hibernate.INTEGER ) );
registerFunction( "left", new StandardSQLFunction( "left", Hibernate.STRING ) ); registerFunction( "left", new StandardSQLFunction( "left", Hibernate.STRING ) );
registerFunction( "locate", new SQLFunctionTemplate( Hibernate.LONG, "locate(?1, ?2)" ) ); registerFunction( "locate", new SQLFunctionTemplate( Hibernate.LONG, "locate(?1, ?2)" ) );
registerFunction( "length", new StandardSQLFunction( "length", Hibernate.LONG ) );
registerFunction( "ln", new StandardSQLFunction( "ln", Hibernate.DOUBLE ) ); registerFunction( "ln", new StandardSQLFunction( "ln", Hibernate.DOUBLE ) );
registerFunction( "log", new StandardSQLFunction( "log", Hibernate.DOUBLE ) ); registerFunction( "log", new StandardSQLFunction( "log", Hibernate.DOUBLE ) );
registerFunction( "lower", new StandardSQLFunction( "lower" ) ); registerFunction( "lower", new StandardSQLFunction( "lower" ) );