fix escape bug

让sql保持原样
This commit is contained in:
huangtiande
2015-02-13 10:12:44 +08:00
parent 0b9b02cd99
commit fd73ffb6af
@@ -92,6 +92,7 @@ public class PGLexer extends Lexer {
hasSpecial = true;
}
putChar('\\');
switch (ch) {
case '\0':
putChar('\0');
@@ -137,6 +138,7 @@ public class PGLexer extends Lexer {
arraycopy(mark + 1, buf, 0, bufPos);
hasSpecial = true;
putChar('\'');
putChar('\'');
continue;
}
}