diff options
| author | Andi Albrecht <albrecht.andi@gmail.com> | 2009-09-12 08:05:34 +0200 |
|---|---|---|
| committer | Andi Albrecht <albrecht.andi@gmail.com> | 2009-09-12 08:05:34 +0200 |
| commit | 3d13c5d4bb14f76d407285f2a91e7061585fd6da (patch) | |
| tree | 8816cdae40c231eb4da4c4ae8d49befb1f05e854 /tests/test_grouping.py | |
| parent | 29590e09223ca9eb44e15429488664cff9db5f9e (diff) | |
| download | sqlparse-3d13c5d4bb14f76d407285f2a91e7061585fd6da.tar.gz | |
Prevent WHERE grouper from consuming closing parenthesis (fixes issue9, reported by estama).
Diffstat (limited to 'tests/test_grouping.py')
| -rw-r--r-- | tests/test_grouping.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_grouping.py b/tests/test_grouping.py index c3039b8..119f574 100644 --- a/tests/test_grouping.py +++ b/tests/test_grouping.py @@ -114,7 +114,7 @@ class TestGrouping(TestCaseBase): s = 'select x from (select y from foo where bar = 1) z' p = sqlparse.parse(s)[0] self.ndiffAssertEqual(s, p.to_unicode()) - self.assertTrue(isinstance(p.tokens[-3].tokens[-1], Where)) + self.assertTrue(isinstance(p.tokens[-3].tokens[-2], Where)) def test_typecast(self): s = 'select foo::integer from bar' |
