mirror of https://github.com/apache/openjpa.git
OPENJPA-2772 update list of h2 resorved words
This commit is contained in:
parent
4b88b80dc0
commit
11863ed932
|
@ -79,13 +79,50 @@ public class H2Dictionary extends DBDictionary {
|
||||||
timeWithZoneTypeName = "TIME";
|
timeWithZoneTypeName = "TIME";
|
||||||
|
|
||||||
reservedWordSet.addAll(Arrays.asList(new String[] {
|
reservedWordSet.addAll(Arrays.asList(new String[] {
|
||||||
"CURRENT_TIMESTAMP", "CURRENT_TIME", "CURRENT_DATE", "CROSS",
|
"ALL",
|
||||||
"DISTINCT", "EXCEPT", "EXISTS", "FROM", "FOR", "FALSE", "FULL",
|
"CHECK",
|
||||||
"GROUP", "HAVING", "INNER", "INTERSECT", "IS", "JOIN", "LIKE",
|
"CONSTRAINT",
|
||||||
"MINUS", "NATURAL", "NOT", "NULL", "ON", "ORDER", "PRIMARY",
|
"CROSS",
|
||||||
"ROWNUM", "SELECT", "SYSDATE", "SYSTIME", "SYSTIMESTAMP", "TODAY",
|
"CURRENT_DATE",
|
||||||
"TRUE", "UNION", "WHERE"
|
"CURRENT_TIME",
|
||||||
}));
|
"CURRENT_TIMESTAMP",
|
||||||
|
"DISTINCT",
|
||||||
|
"EXCEPT",
|
||||||
|
"EXISTS",
|
||||||
|
"FALSE",
|
||||||
|
"FETCH",
|
||||||
|
"FOR",
|
||||||
|
"FOREIGN",
|
||||||
|
"FROM",
|
||||||
|
"FULL",
|
||||||
|
"GROUP",
|
||||||
|
"HAVING",
|
||||||
|
"INNER",
|
||||||
|
"INTERSECT",
|
||||||
|
"IS",
|
||||||
|
"JOIN",
|
||||||
|
"LIKE",
|
||||||
|
"LIMIT",
|
||||||
|
"MINUS",
|
||||||
|
"NATURAL",
|
||||||
|
"NOT",
|
||||||
|
"NULL",
|
||||||
|
"OFFSET",
|
||||||
|
"ON",
|
||||||
|
"ORDER",
|
||||||
|
"PRIMARY",
|
||||||
|
"ROWNUM",
|
||||||
|
"SELECT",
|
||||||
|
"SYSDATE",
|
||||||
|
"SYSTIME",
|
||||||
|
"SYSTIMESTAMP",
|
||||||
|
"TODAY",
|
||||||
|
"TRUE",
|
||||||
|
"UNION",
|
||||||
|
"UNIQUE",
|
||||||
|
"WHERE",
|
||||||
|
"WITH"
|
||||||
|
}));
|
||||||
|
|
||||||
// reservedWordSet subset that CANNOT be used as valid column names
|
// reservedWordSet subset that CANNOT be used as valid column names
|
||||||
// (i.e., without surrounding them with double-quotes)
|
// (i.e., without surrounding them with double-quotes)
|
||||||
|
|
Loading…
Reference in New Issue