OPENJPA-2772 update list of h2 resorved words

This commit is contained in:
Mark Struberg 2019-02-02 13:48:22 +01:00
parent 4b88b80dc0
commit 11863ed932
1 changed files with 44 additions and 7 deletions

View File

@ -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)