summaryrefslogtreecommitdiff
path: root/sqlparse
diff options
context:
space:
mode:
authorRomain Rigaux <romain.rigaux@gmail.com>2017-02-04 07:38:55 -0800
committerGitHub <noreply@github.com>2017-02-04 07:38:55 -0800
commitb1c06469189a2ef09980e87ae80495e4d70d0a17 (patch)
tree41d413399de89794de346fdd4aca67a0e6d3b3ba /sqlparse
parent5a9ed090400b5bce00826d141b58ea6e272297f7 (diff)
downloadsqlparse-b1c06469189a2ef09980e87ae80495e4d70d0a17.tar.gz
Putting LIMIT on a new line #320
https://github.com/andialbrecht/sqlparse/issues/320
Diffstat (limited to 'sqlparse')
-rw-r--r--sqlparse/filters/reindent.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sqlparse/filters/reindent.py b/sqlparse/filters/reindent.py
index ede2d27..f077849 100644
--- a/sqlparse/filters/reindent.py
+++ b/sqlparse/filters/reindent.py
@@ -51,7 +51,7 @@ class ReindentFilter(object):
def _next_token(self, tlist, idx=-1):
split_words = ('FROM', 'STRAIGHT_JOIN$', 'JOIN$', 'AND', 'OR',
'GROUP', 'ORDER', 'UNION', 'VALUES',
- 'SET', 'BETWEEN', 'EXCEPT', 'HAVING')
+ 'SET', 'BETWEEN', 'EXCEPT', 'HAVING', 'LIMIT')
m_split = T.Keyword, split_words, True
tidx, token = tlist.token_next_by(m=m_split, idx=idx)