OPENJPA-1818 Exclude 'order' as valid column name.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1021875 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Donald Woods 2010-10-12 18:31:13 +00:00
parent e991772527
commit 0bcdb27e8f
1 changed files with 7 additions and 0 deletions

View File

@ -73,6 +73,13 @@ public class H2Dictionary extends DBDictionary {
"ROWNUM", "SELECT", "SYSDATE", "SYSTIME", "SYSTIMESTAMP", "TODAY",
"TRUE", "UNION", "WHERE"
}));
// reservedWordSet subset that CANNOT be used as valid column names
// (i.e., without surrounding them with double-quotes)
invalidColumnWordSet.addAll(Arrays.asList(new String[]{
"ORDER",
}));
}
@Override