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:
Patrick Linskey 2007-03-06 09:33:06 +00:00
parent afce8f543a
commit 1af233a0b3
1 changed files with 3 additions and 0 deletions

View File

@ -101,6 +101,9 @@ public class MySQLDictionary
"LOAD", "MEDIUMINT", "OPTION", "OUTFILE", "REPLACE",
"SET", "STARTING", "TEXT", "UNSIGNED", "ZEROFILL",
}));
// MySQL requires double-escape for strings
searchStringEscape = "\\\\";
}
public String[] getCreateTableSQL(Table table) {