From 11863ed9327c70420c2a537dafa380d3fee7b548 Mon Sep 17 00:00:00 2001 From: Mark Struberg Date: Sat, 2 Feb 2019 13:48:22 +0100 Subject: [PATCH] OPENJPA-2772 update list of h2 resorved words --- .../apache/openjpa/jdbc/sql/H2Dictionary.java | 51 ++++++++++++++++--- 1 file changed, 44 insertions(+), 7 deletions(-) diff --git a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/H2Dictionary.java b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/H2Dictionary.java index 095e74218..0ad08d92d 100644 --- a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/H2Dictionary.java +++ b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/H2Dictionary.java @@ -79,13 +79,50 @@ public class H2Dictionary extends DBDictionary { timeWithZoneTypeName = "TIME"; reservedWordSet.addAll(Arrays.asList(new String[] { - "CURRENT_TIMESTAMP", "CURRENT_TIME", "CURRENT_DATE", "CROSS", - "DISTINCT", "EXCEPT", "EXISTS", "FROM", "FOR", "FALSE", "FULL", - "GROUP", "HAVING", "INNER", "INTERSECT", "IS", "JOIN", "LIKE", - "MINUS", "NATURAL", "NOT", "NULL", "ON", "ORDER", "PRIMARY", - "ROWNUM", "SELECT", "SYSDATE", "SYSTIME", "SYSTIMESTAMP", "TODAY", - "TRUE", "UNION", "WHERE" - })); + "ALL", + "CHECK", + "CONSTRAINT", + "CROSS", + "CURRENT_DATE", + "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 // (i.e., without surrounding them with double-quotes)