summaryrefslogtreecommitdiff
path: root/sqlparse/engine
diff options
context:
space:
mode:
authorAndi Albrecht <albrecht.andi@gmail.com>2014-12-21 17:12:37 +0100
committerAndi Albrecht <albrecht.andi@gmail.com>2014-12-21 17:12:37 +0100
commit3f5ec21ffcd4702fc54b4a769224760ffbc31de9 (patch)
tree98c91efa0e7f038e2073f09f9389c7c6ec0aec24 /sqlparse/engine
parent1e8a1b7cdb2d07eedfc525290dbfd3ac8e2882b6 (diff)
downloadsqlparse-3f5ec21ffcd4702fc54b4a769224760ffbc31de9.tar.gz
Improve formatting of HAVING statements.
Diffstat (limited to 'sqlparse/engine')
-rw-r--r--sqlparse/engine/grouping.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sqlparse/engine/grouping.py b/sqlparse/engine/grouping.py
index ee534e3..a048128 100644
--- a/sqlparse/engine/grouping.py
+++ b/sqlparse/engine/grouping.py
@@ -301,7 +301,7 @@ def group_where(tlist):
if not isinstance(sgroup, sql.Where)]
idx = 0
token = tlist.token_next_match(idx, T.Keyword, 'WHERE')
- stopwords = ('ORDER', 'GROUP', 'LIMIT', 'UNION', 'EXCEPT')
+ stopwords = ('ORDER', 'GROUP', 'LIMIT', 'UNION', 'EXCEPT', 'HAVING')
while token:
tidx = tlist.token_index(token)
end = tlist.token_next_match(tidx + 1, T.Keyword, stopwords)