changed sql argument encoding utility method: single quotes are now

encoded as '' instead of \'
This commit is contained in:
hns 2002-07-04 17:33:20 +00:00
parent 47a3202ba8
commit d66a280200

View file

@ -510,7 +510,7 @@ public final class Relation {
for (int i=0; i<l; i++) { for (int i=0; i<l; i++) {
char c = str.charAt (i); char c = str.charAt (i);
if (c == '\'') if (c == '\'')
sbuf.append ("\\"); sbuf.append ('\'');
sbuf.append (c); sbuf.append (c);
} }
return sbuf.toString (); return sbuf.toString ();