Skip to content

Commit

Permalink
Update changelog and code cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
andialbrecht committed Mar 5, 2024
1 parent dc2329d commit b97387c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Alphabetical list of contributors:
* Hugo van Kemenade <[email protected]>
* hurcy <[email protected]>
* Ian Robertson <[email protected]>
* Igor Khrol <[email protected]>
* JacekPliszka <[email protected]>
* JavierPan <[email protected]>
* Jean-Martin Archer <[email protected]>
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Enhancements:

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

Bug Fixes

Expand Down
3 changes: 2 additions & 1 deletion sqlparse/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,8 @@ def get_parameters(self):
for token in parenthesis.tokens:
if isinstance(token, IdentifierList):
return token.get_identifiers()
elif imt(token, i=(Function, Identifier, TypedLiteral), t=T.Literal):
elif imt(token, i=(Function, Identifier, TypedLiteral),
t=T.Literal):
result.append(token)
return result

Expand Down

0 comments on commit b97387c

Please sign in to comment.