mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
fix escape bug
让sql保持原样
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user