diff options
| author | Andi Albrecht <albrecht.andi@gmail.com> | 2011-07-24 00:07:38 +0200 |
|---|---|---|
| committer | Andi Albrecht <albrecht.andi@gmail.com> | 2011-07-24 00:07:38 +0200 |
| commit | 6c5a777bb6e144aeb0d41490148734ecd5ecb895 (patch) | |
| tree | eecfd309d174069d1234288b500cd40dc445acb4 /tests | |
| parent | bb6453b96a4d7ecfc47322398768b5857e5e73f2 (diff) | |
| download | sqlparse-6c5a777bb6e144aeb0d41490148734ecd5ecb895.tar.gz | |
Detect function aliases better.
Diffstat (limited to 'tests')
| -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 c6f3679..134409e 100644 --- a/tests/test_grouping.py +++ b/tests/test_grouping.py @@ -157,6 +157,10 @@ class TestGrouping(TestCaseBase): self.ndiffAssertEqual(s, p.to_unicode()) self.assertEqual(p.tokens[4].get_alias(), 'view') + def test_idlist_function(self): # see issue10 too + p = sqlparse.parse('foo(1) x, bar')[0] + self.assert_(isinstance(p.tokens[0], sql.IdentifierList)) + def test_comparison_exclude(self): # make sure operators are not handled too lazy p = sqlparse.parse('(=)')[0] |
