From b1c06469189a2ef09980e87ae80495e4d70d0a17 Mon Sep 17 00:00:00 2001 From: Romain Rigaux Date: Sat, 4 Feb 2017 07:38:55 -0800 Subject: Putting LIMIT on a new line #320 https://github.com/andialbrecht/sqlparse/issues/320 --- sqlparse/filters/reindent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sqlparse') 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) -- cgit v1.2.1