summaryrefslogtreecommitdiff
path: root/tests/test_grouping.py
diff options
context:
space:
mode:
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 8d84804..c63d8e5 100644
--- a/tests/test_grouping.py
+++ b/tests/test_grouping.py
@@ -189,6 +189,10 @@ class TestGrouping(TestCaseBase):
self.assert_(isinstance(p.tokens[0], sql.Function))
self.assertEqual(len(list(p.tokens[0].get_parameters())), 2)
+ def test_varchar(self):
+ p = sqlparse.parse('"text" Varchar(50) NOT NULL')[0]
+ self.assert_(isinstance(p.tokens[2], sql.Function))
+
class TestStatement(TestCaseBase):