Permalink
Browse files

Registered reserved words for CUBRID dialect.

  • Loading branch information...
kadishmal committed Jul 19, 2012
1 parent 4978655 commit 93c51d1910257c582ddcfe0f75fcca6b44bf6523
Showing with 31 additions and 0 deletions.
  1. +31 −0 hibernate-core/src/main/java/org/hibernate/dialect/CUBRIDDialect.java
@@ -194,6 +194,37 @@ public CUBRIDDialect() {
registerFunction("user", new NoArgSQLFunction("user", StandardBasicTypes.STRING, false) );
registerFunction("rownum", new NoArgSQLFunction("rownum", StandardBasicTypes.LONG, false) );
registerFunction("concat", new VarArgsSQLFunction(StandardBasicTypes.STRING, "", "||", ""));
+
+ registerKeyword( "TYPE" );
+ registerKeyword( "YEAR" );
+ registerKeyword( "MONTH" );
+ registerKeyword( "ALIAS" );
+ registerKeyword( "VALUE" );
+ registerKeyword( "FIRST" );
+ registerKeyword( "ROLE" );
+ registerKeyword( "CLASS" );
+ registerKeyword( "BIT" );
+ registerKeyword( "TIME" );
+ registerKeyword( "QUERY" );
+ registerKeyword( "DATE" );
+ registerKeyword( "USER" );
+ registerKeyword( "ACTION" );
+ registerKeyword( "SYS_USER" );
+ registerKeyword( "ZONE" );
+ registerKeyword( "LANGUAGE" );
+ registerKeyword( "DICTIONARY" );
+ registerKeyword( "DATA" );
+ registerKeyword( "TEST" );
+ registerKeyword( "SUPERCLASS" );
+ registerKeyword( "SECTION" );
+ registerKeyword( "LOWER" );
+ registerKeyword( "LIST" );
+ registerKeyword( "OID" );
+ registerKeyword( "DAY" );
+ registerKeyword( "IF" );
+ registerKeyword( "ATTRIBUTE" );
+ registerKeyword( "STRING" );
+ registerKeyword( "SEARCH" );
}
public boolean supportsIdentityColumns() {

0 comments on commit 93c51d1

Please sign in to comment.