Sfoglia il codice sorgente

HUE-4715 [editor] Formatter does not put LIMIT on a new line

Romain Rigaux 8 anni fa
parent
commit
37f064de5a

+ 1 - 1
desktop/core/ext-py/sqlparse-0.2.0/sqlparse/filters/reindent.py

@@ -47,7 +47,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)