Skip to content

Commit

Permalink
Bugfix: only lowercase boolean parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Donnype committed Nov 21, 2023
1 parent c315123 commit 4ce22bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xtdb/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,10 @@ def _format_parameter(

if isinstance(parameter, datetime):
current_params[key] = parameter.isoformat()
if isinstance(parameter, (int, str, bool)):
elif isinstance(parameter, bool):
current_params[key] = str(parameter).lower()
elif isinstance(parameter, (int, str)):
current_params[key] = str(parameter)

return current_params

Expand Down

0 comments on commit 4ce22bd

Please sign in to comment.