We need to escape \ as well as '.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@1688 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2005-08-07 21:51:30 +00:00
parent aa74625b0a
commit 223cdd8274
@@ -133,6 +133,7 @@ public class JDBCUtil
*/
public static String escape (String text)
{
text = StringUtil.replace(text, "\\", "\\\\");
return "'" + StringUtil.replace(text, "'", "\\'") + "'";
}