changed sql argument encoding utility method: single quotes are now
encoded as '' instead of \'
This commit is contained in:
parent
47a3202ba8
commit
d66a280200
1 changed files with 1 additions and 1 deletions
|
@ -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 ();
|
||||||
|
|
Loading…
Add table
Reference in a new issue