openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject [openjpa] 02/03: OPENJPA-2772 update list of h2 resorved words
Date Sat, 02 Feb 2019 12:55:43 GMT
This is an automated email from the ASF dual-hosted git repository.

struberg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openjpa.git

commit 11863ed9327c70420c2a537dafa380d3fee7b548
Author: Mark Struberg <struberg@apache.org>
AuthorDate: Sat Feb 2 13:48:22 2019 +0100

    OPENJPA-2772 update list of h2 resorved words
---
 .../org/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 095e742..0ad08d9 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)


Mime
View raw message