From 403de6fc648ac4e012b60b49161c3f5f36dc944a Mon Sep 17 00:00:00 2001 From: Simon Heisterkamp Date: Sun, 19 Sep 2021 11:56:46 +0200 Subject: Fixed bad parsing of create table statements that use lower case --- tests/test_grouping.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/test_grouping.py b/tests/test_grouping.py index 8c034f9..546ad4b 100644 --- a/tests/test_grouping.py +++ b/tests/test_grouping.py @@ -660,3 +660,7 @@ def test_grouping_as_cte(): assert p[0].get_alias() is None assert p[2].value == 'AS' assert p[4].value == 'WITH' + +def test_grouping_create_table(): + p = sqlparse.parse("create table db.tbl (a string)")[0].tokens + assert p[4].value == "db.tbl" -- cgit v1.2.1