HHH-4709 - registered length functions should return Integer
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18254 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
cdfd6d950b
commit
bfa63cca67
|
@ -305,7 +305,6 @@ public class Cache71Dialect extends Dialect {
|
|||
registerFunction( "lcase", new StandardJDBCEscapeFunction( "lcase", Hibernate.STRING ) );
|
||||
registerFunction( "left", new StandardJDBCEscapeFunction( "left", Hibernate.STRING ) );
|
||||
registerFunction( "len", new StandardSQLFunction( "len", Hibernate.INTEGER ) );
|
||||
registerFunction( "length", new StandardSQLFunction( "length", Hibernate.INTEGER ) );
|
||||
registerFunction( "$length", new VarArgsSQLFunction( "$length(", ",", ")" ) );
|
||||
// aggregate functions shouldn't be registered, right?
|
||||
//registerFunction( "list", new StandardSQLFunction("list",Hibernate.STRING) );
|
||||
|
|
|
@ -134,7 +134,6 @@ public class DB2Dialect extends Dialect {
|
|||
registerFunction("lower", new StandardSQLFunction("lower") );
|
||||
registerFunction("ucase", new StandardSQLFunction("ucase") );
|
||||
registerFunction("lcase", new StandardSQLFunction("lcase") );
|
||||
registerFunction("length", new StandardSQLFunction("length", Hibernate.LONG) );
|
||||
registerFunction("ltrim", new StandardSQLFunction("ltrim") );
|
||||
registerFunction("rtrim", new StandardSQLFunction("rtrim") );
|
||||
registerFunction( "substr", new StandardSQLFunction( "substr", Hibernate.STRING ) );
|
||||
|
|
|
@ -85,7 +85,6 @@ public class HSQLDialect extends Dialect {
|
|||
|
||||
registerFunction( "ascii", new StandardSQLFunction( "ascii", Hibernate.INTEGER ) );
|
||||
registerFunction( "char", new StandardSQLFunction( "char", Hibernate.CHARACTER ) );
|
||||
registerFunction( "length", new StandardSQLFunction( "length", Hibernate.LONG ) );
|
||||
registerFunction( "lower", new StandardSQLFunction( "lower" ) );
|
||||
registerFunction( "upper", new StandardSQLFunction( "upper" ) );
|
||||
registerFunction( "lcase", new StandardSQLFunction( "lcase" ) );
|
||||
|
|
|
@ -100,7 +100,6 @@ 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" ) );
|
||||
|
|
|
@ -64,7 +64,6 @@ public class MckoiDialect extends Dialect {
|
|||
registerFunction( "sqrt", new StandardSQLFunction("sqrt", Hibernate.DOUBLE) );
|
||||
registerFunction( "abs", new StandardSQLFunction("abs") );
|
||||
registerFunction( "sign", new StandardSQLFunction( "sign", Hibernate.INTEGER ) );
|
||||
registerFunction( "length", new StandardSQLFunction( "length", Hibernate.INTEGER ) );
|
||||
registerFunction( "round", new StandardSQLFunction( "round", Hibernate.INTEGER ) );
|
||||
registerFunction( "mod", new StandardSQLFunction( "mod", Hibernate.INTEGER ) );
|
||||
registerFunction( "least", new StandardSQLFunction("least") );
|
||||
|
|
|
@ -76,7 +76,6 @@ public class MySQLDialect extends Dialect {
|
|||
registerFunction("character_length", new StandardSQLFunction("character_length", Hibernate.LONG) );
|
||||
registerFunction("lcase", new StandardSQLFunction("lcase") );
|
||||
registerFunction("lower", new StandardSQLFunction("lower") );
|
||||
registerFunction("length", new StandardSQLFunction("length", Hibernate.LONG) );
|
||||
registerFunction("ltrim", new StandardSQLFunction("ltrim") );
|
||||
registerFunction("ord", new StandardSQLFunction("ord", Hibernate.INTEGER) );
|
||||
registerFunction("quote", new StandardSQLFunction("quote") );
|
||||
|
|
|
@ -138,7 +138,6 @@ public class Oracle8iDialect extends Dialect {
|
|||
registerFunction( "soundex", new StandardSQLFunction("soundex") );
|
||||
registerFunction( "upper", new StandardSQLFunction("upper") );
|
||||
registerFunction( "ascii", new StandardSQLFunction("ascii", Hibernate.INTEGER) );
|
||||
registerFunction( "length", new StandardSQLFunction("length", Hibernate.LONG) );
|
||||
|
||||
registerFunction( "to_char", new StandardSQLFunction("to_char", Hibernate.STRING) );
|
||||
registerFunction( "to_date", new StandardSQLFunction("to_date", Hibernate.TIMESTAMP) );
|
||||
|
|
|
@ -117,7 +117,6 @@ public class Oracle9Dialect extends Dialect {
|
|||
registerFunction( "soundex", new StandardSQLFunction("soundex") );
|
||||
registerFunction( "upper", new StandardSQLFunction("upper") );
|
||||
registerFunction( "ascii", new StandardSQLFunction("ascii", Hibernate.INTEGER) );
|
||||
registerFunction( "length", new StandardSQLFunction("length", Hibernate.LONG) );
|
||||
|
||||
registerFunction( "to_char", new StandardSQLFunction("to_char", Hibernate.STRING) );
|
||||
registerFunction( "to_date", new StandardSQLFunction("to_date", Hibernate.TIMESTAMP) );
|
||||
|
|
|
@ -106,7 +106,6 @@ public class PostgreSQLDialect extends Dialect {
|
|||
registerFunction( "quote_literal", new StandardSQLFunction("quote_literal", Hibernate.STRING) );
|
||||
registerFunction( "md5", new StandardSQLFunction("md5") );
|
||||
registerFunction( "ascii", new StandardSQLFunction("ascii", Hibernate.INTEGER) );
|
||||
registerFunction( "length", new StandardSQLFunction("length", Hibernate.LONG) );
|
||||
registerFunction( "char_length", new StandardSQLFunction("char_length", Hibernate.LONG) );
|
||||
registerFunction( "bit_length", new StandardSQLFunction("bit_length", Hibernate.LONG) );
|
||||
registerFunction( "octet_length", new StandardSQLFunction("octet_length", Hibernate.LONG) );
|
||||
|
|
|
@ -73,7 +73,6 @@ public class RDMSOS2200Dialect extends Dialect {
|
|||
registerFunction("ascii", new StandardSQLFunction("ascii", Hibernate.INTEGER) );
|
||||
registerFunction("char_length", new StandardSQLFunction("char_length", Hibernate.INTEGER) );
|
||||
registerFunction("character_length", new StandardSQLFunction("character_length", Hibernate.INTEGER) );
|
||||
registerFunction("length", new StandardSQLFunction("length", Hibernate.INTEGER) );
|
||||
|
||||
// The RDMS concat() function only supports 2 parameters
|
||||
registerFunction( "concat", new SQLFunctionTemplate(Hibernate.STRING, "concat(?1, ?2)") );
|
||||
|
|
Loading…
Reference in New Issue