diff options
| author | Mike Amy <cocoade@googlemail.com> | 2012-11-07 20:39:42 +0700 |
|---|---|---|
| committer | Mike Amy <cocoade@googlemail.com> | 2012-11-07 20:39:42 +0700 |
| commit | eb9afb54f65d1d0ffeaa0a083bbccf0a048fb162 (patch) | |
| tree | 6966e0aaf16d1a61ce3afbc13bf929130555a6f0 /tests/test_grouping.py | |
| parent | 997135e26c6e68becc178d312dc8b073033cb13c (diff) | |
| download | sqlparse-eb9afb54f65d1d0ffeaa0a083bbccf0a048fb162.tar.gz | |
Special case grouping logic for VARCHAR, otherwise it gets lost from field definitions.
Diffstat (limited to 'tests/test_grouping.py')
| -rw-r--r-- | tests/test_grouping.py | 4 |
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): |
