diff options
| author | Jesús Leganés Combarro "Piranna" <piranna@gmail.com> | 2012-06-10 18:44:05 +0200 |
|---|---|---|
| committer | Jesús Leganés Combarro "Piranna" <piranna@gmail.com> | 2012-06-10 18:44:05 +0200 |
| commit | ddca80df54c56f45ee5f667c6a8bb25a83fcdc81 (patch) | |
| tree | bf0c2094b28bae274affb7078d6851a2576b77df /sqlparse/engine | |
| parent | 016b1e90090b70696438373641ef6033e5cd527c (diff) | |
| download | sqlparse-ddca80df54c56f45ee5f667c6a8bb25a83fcdc81.tar.gz | |
Fixed regressions
Diffstat (limited to 'sqlparse/engine')
| -rw-r--r-- | sqlparse/engine/grouping.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sqlparse/engine/grouping.py b/sqlparse/engine/grouping.py index 3bab704..b78cb20 100644 --- a/sqlparse/engine/grouping.py +++ b/sqlparse/engine/grouping.py @@ -214,6 +214,7 @@ def group_identifier_list(tlist): # Search for the first identifier list start = None tcomma = tlist.token_next_match(0, T.Punctuation, ',') + while tcomma: before = tlist.token_prev(tcomma) after = tlist.token_next(tcomma) @@ -227,7 +228,7 @@ def group_identifier_list(tlist): apassed = True # Both tokens around tcomma belong to a list - if not bpassed or not apassed: + if bpassed and apassed: # Set the start of the identifier list if not defined before if start == None: start = before |
