Skip to content

Commit 5d69341

Browse files
committed
Improve parsing of identifier lists containing placeholders.
1 parent fb56a27 commit 5d69341

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

CHANGES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ Bug Fixes
55
* Fix handling of NULL keywords in aliased identifiers.
66
* Fix SerializerUnicode to split unquoted newlines (issue131, by Michael Schuller).
77

8+
Enhancements
9+
* Improve parsing of identifier lists containing placeholders.
10+
811

912
Release 0.1.11 (Feb 07, 2014)
1013
-----------------------------

sqlparse/engine/grouping.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def group_comparison(tlist):
136136
def _parts_valid(token):
137137
return (token.ttype in (T.String.Symbol, T.Name, T.Number,
138138
T.Number.Integer, T.Literal,
139-
T.Literal.Number.Integer)
139+
T.Literal.Number.Integer, T.Name.Placeholder)
140140
or isinstance(token, (sql.Identifier, sql.Parenthesis))
141141
or (token.ttype is T.Keyword
142142
and token.value.upper() in ['NULL', ]))

0 commit comments

Comments
 (0)