summaryrefslogtreecommitdiff
path: root/examples/select_parser.py
diff options
context:
space:
mode:
authorPaul McGuire <ptmcg@users.noreply.github.com>2018-07-14 16:53:28 -0500
committerGitHub <noreply@github.com>2018-07-14 16:53:28 -0500
commit8962e7c69184dba00371c0ae52a9676dc4b40282 (patch)
tree6c501e26f96f49eff1f3d38cb662a7d7d4551741 /examples/select_parser.py
parent8ce4af44a07e3fe2172fc570fa66856367d9d89e (diff)
downloadpyparsing-git-8962e7c69184dba00371c0ae52a9676dc4b40282.tar.gz
Add "group by" case to select_parser.py tests
Update test strings to demonstrate fix in group_by_terms results - original bug was reported on SF bugs by Adam Groszer
Diffstat (limited to 'examples/select_parser.py')
-rw-r--r--examples/select_parser.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/select_parser.py b/examples/select_parser.py
index b619173..5925ad8 100644
--- a/examples/select_parser.py
+++ b/examples/select_parser.py
@@ -121,6 +121,7 @@ tests = """\
select a, db.table.b as BBB from db.table where 1=1 and BBB='yes'
select a, db.table.b as BBB from test_table,db.table where 1=1 and BBB='yes'
select a, db.table.b as BBB from test_table,db.table where 1=1 and BBB='yes' limit 50
+ select a, b from test_table where (1=1 or 2=3) and b='yes' group by zx having b=2 order by 1
"""
select_stmt.runTests(tests)