HHH-3458 Register postgres random() function as "rand" in PostgresSQLDialect

This commit is contained in:
Nikolay Shestakov 2012-12-30 01:22:54 +06:00 committed by Brett Meyer
parent bfcca64997
commit d5c651ccf5
1 changed files with 1 additions and 0 deletions

View File

@ -104,6 +104,7 @@ public class PostgreSQL81Dialect extends Dialect {
registerFunction( "variance", new StandardSQLFunction("variance", StandardBasicTypes.DOUBLE) );
registerFunction( "random", new NoArgSQLFunction("random", StandardBasicTypes.DOUBLE) );
registerFunction( "rand", new NoArgSQLFunction("random", StandardBasicTypes.DOUBLE) );
registerFunction( "round", new StandardSQLFunction("round") );
registerFunction( "trunc", new StandardSQLFunction("trunc") );