OPENJPA-1994: Add index to reserved words for MySQLDictionary

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1099899 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Dick 2011-05-05 18:01:54 +00:00
parent f9c5a20200
commit 849a77b5d3
1 changed files with 2 additions and 1 deletions

View File

@ -122,7 +122,7 @@ public class MySQLDictionary
"AUTO_INCREMENT", "BINARY", "BLOB", "CHANGE", "ENUM", "INFILE",
"INT1", "INT2", "INT4", "FLOAT1", "FLOAT2", "FLOAT4", "LOAD",
"MEDIUMINT", "OUTFILE", "REPLACE", "STARTING", "TEXT", "UNSIGNED",
"ZEROFILL",
"ZEROFILL", "INDEX",
}));
// reservedWordSet subset that CANNOT be used as valid column names
@ -146,6 +146,7 @@ public class MySQLDictionary
"STARTING", "TABLE", "THEN", "TO", "TRAILING", "TRUE", "UNION",
"UNIQUE", "UNSIGNED", "UPDATE", "USAGE", "USING", "VALUES",
"VARCHAR", "VARYING", "WHEN", "WHERE", "WITH", "WRITE", "ZEROFILL",
"INDEX",
}));
// MySQL requires double-escape for strings