mirror of https://github.com/apache/openjpa.git
OPENJPA-80: MySQL escape string for string matches queries
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@515043 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
afce8f543a
commit
1af233a0b3
|
@ -101,6 +101,9 @@ public class MySQLDictionary
|
||||||
"LOAD", "MEDIUMINT", "OPTION", "OUTFILE", "REPLACE",
|
"LOAD", "MEDIUMINT", "OPTION", "OUTFILE", "REPLACE",
|
||||||
"SET", "STARTING", "TEXT", "UNSIGNED", "ZEROFILL",
|
"SET", "STARTING", "TEXT", "UNSIGNED", "ZEROFILL",
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
// MySQL requires double-escape for strings
|
||||||
|
searchStringEscape = "\\\\";
|
||||||
}
|
}
|
||||||
|
|
||||||
public String[] getCreateTableSQL(Table table) {
|
public String[] getCreateTableSQL(Table table) {
|
||||||
|
|
Loading…
Reference in New Issue