From b253bb12292a3b8aac9a94c056debe006da8ce81 Mon Sep 17 00:00:00 2001 From: Andi Albrecht Date: Mon, 15 Jul 2024 08:55:00 +0200 Subject: [PATCH] Add regression test (#780). --- tests/test_split.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_split.py b/tests/test_split.py index e2f1429e..d6676086 100644 --- a/tests/test_split.py +++ b/tests/test_split.py @@ -22,6 +22,11 @@ def test_split_backslash(): assert len(stmts) == 2 +def test_escaped_quotes(): # issue780 + stmts = sqlparse.parse("SELECT (')\'');a');") + assert len(stmts) == 1 + + @pytest.mark.parametrize('fn', ['function.sql', 'function_psql.sql', 'function_psql2.sql',