Skip to content

Commit b97387c

Browse files
committed
Update changelog and code cleanup.
1 parent dc2329d commit b97387c

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Alphabetical list of contributors:
3535
* Hugo van Kemenade <hugovk@users.noreply.github.com>
3636
* hurcy <cinyoung.hur@gmail.com>
3737
* Ian Robertson <ian.robertson@capitalone.com>
38+
* Igor Khrol <igor.khrol@automattic.com>
3839
* JacekPliszka <Jacek.Pliszka@gmail.com>
3940
* JavierPan <PeterSandwich@users.noreply.github.com>
4041
* Jean-Martin Archer <jm@jmartin.ca>

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Enhancements:
1010

1111
* Splitting statements now allows to remove the semicolon at the end.
1212
Some database backends love statements without semicolon (issue742).
13+
* Support TypedLiterals in get_parameters (pr649, by Khrol).
1314

1415
Bug Fixes
1516

sqlparse/sql.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,8 @@ def get_parameters(self):
623623
for token in parenthesis.tokens:
624624
if isinstance(token, IdentifierList):
625625
return token.get_identifiers()
626-
elif imt(token, i=(Function, Identifier, TypedLiteral), t=T.Literal):
626+
elif imt(token, i=(Function, Identifier, TypedLiteral),
627+
t=T.Literal):
627628
result.append(token)
628629
return result
629630

0 commit comments

Comments
 (0)