diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_regressions.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_regressions.py b/tests/test_regressions.py index b247ce2..38d1840 100644 --- a/tests/test_regressions.py +++ b/tests/test_regressions.py @@ -411,3 +411,10 @@ def test_format_invalid_where_clause(): # did raise ValueError formatted = sqlparse.format('where, foo', reindent=True) assert formatted == 'where, foo' + + +def test_splitting_at_and_backticks_issue588(): + splitted = sqlparse.split( + 'grant foo to user1@`myhost`; grant bar to user1@`myhost`;') + assert len(splitted) == 2 + assert splitted[-1] == 'grant bar to user1@`myhost`;' |
