diff options
| author | Andi Albrecht <albrecht.andi@gmail.com> | 2023-03-20 08:33:46 +0100 |
|---|---|---|
| committer | Andi Albrecht <albrecht.andi@gmail.com> | 2023-04-18 10:23:02 +0200 |
| commit | c457abd5f097dd13fb21543381e7cfafe7d31cfb (patch) | |
| tree | 26251f4d835f595b3e5b7616d54a051a3e8de5bf /tests | |
| parent | b949fdf9a1538f98b57612bef6306fc38f32aaf7 (diff) | |
| download | sqlparse-c457abd5f097dd13fb21543381e7cfafe7d31cfb.tar.gz | |
Remove unnecessary parts in regex for bad escaping.
The regex tried to deal with situations where escaping in the
SQL to be parsed was suspicious.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_split.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_split.py b/tests/test_split.py index a9d7576..e79750e 100644 --- a/tests/test_split.py +++ b/tests/test_split.py @@ -18,8 +18,8 @@ def test_split_semicolon(): def test_split_backslash(): - stmts = sqlparse.parse(r"select '\\'; select '\''; select '\\\'';") - assert len(stmts) == 3 + stmts = sqlparse.parse("select '\'; select '\'';") + assert len(stmts) == 2 @pytest.mark.parametrize('fn', ['function.sql', |
