Skip to content

Commit b253bb1

Browse files
committed
Add regression test (#780).
1 parent 791e25d commit b253bb1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_split.py

+5
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ def test_split_backslash():
2222
assert len(stmts) == 2
2323

2424

25+
def test_escaped_quotes(): # issue780
26+
stmts = sqlparse.parse("SELECT (')\'');a');")
27+
assert len(stmts) == 1
28+
29+
2530
@pytest.mark.parametrize('fn', ['function.sql',
2631
'function_psql.sql',
2732
'function_psql2.sql',

0 commit comments

Comments
 (0)