summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_regressions.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_regressions.py b/tests/test_regressions.py
index 6da94dc..ea8cd56 100644
--- a/tests/test_regressions.py
+++ b/tests/test_regressions.py
@@ -255,3 +255,9 @@ END;
SELECT * FROM a.b;"""
splitted = sqlparse.split(sql)
assert len(splitted) == 2
+
+
+def test_issue186_get_type():
+ sql = "-- comment\ninsert into foo"
+ p = sqlparse.parse(sql)[0]
+ assert p.get_type() == 'INSERT'