summaryrefslogtreecommitdiff
path: root/tests/test_grouping.py
diff options
context:
space:
mode:
authorSimon Heisterkamp <she@delegate.dk>2021-09-19 11:56:46 +0200
committerAndi Albrecht <albrecht.andi@gmail.com>2022-08-24 21:14:38 +0200
commit403de6fc648ac4e012b60b49161c3f5f36dc944a (patch)
tree84d39183eb64729173a2c7c39d68489bfd8a1237 /tests/test_grouping.py
parenta17248666f8bafaacf16016f797c830af4d0102e (diff)
downloadsqlparse-403de6fc648ac4e012b60b49161c3f5f36dc944a.tar.gz
Fixed bad parsing of create table statements that use lower case
Diffstat (limited to 'tests/test_grouping.py')
-rw-r--r--tests/test_grouping.py4
1 files changed, 4 insertions, 0 deletions
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"