Skip to content

Commit 71d9fd9

Browse files
committed
fixes #167
1 parent 0e51dac commit 71d9fd9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
options{
2424
IGNORE_CASE=true ;
2525
STATIC=false;
26-
DEBUG_PARSER=false;
26+
DEBUG_PARSER=true;
2727
DEBUG_LOOKAHEAD=false;
2828
DEBUG_TOKEN_MANAGER=false;
2929
// FORCE_LA_CHECK=true;

src/test/java/net/sf/jsqlparser/test/update/UpdateTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,9 @@ public void testUpdateWithSelect() throws JSQLParserException {
6565
public void testUpdateWithSelect2() throws JSQLParserException {
6666
assertSqlCanBeParsedAndDeparsed("UPDATE mytable SET (col1, col2, col3) = (SELECT a, b, c FROM mytable2)");
6767
}
68+
69+
@Test
70+
public void testUpdateIssue167_SingleQuotes() throws JSQLParserException {
71+
assertSqlCanBeParsedAndDeparsed("UPDATE tablename SET NAME = 'Customer 2', ADDRESS = 'Address \\' ddad2', AUTH_KEY = 'samplekey' WHERE ID = 2");
72+
}
6873
}

0 commit comments

Comments
 (0)