From 4ce22bd832d4146dc313e25de87bfe22dd5a26f0 Mon Sep 17 00:00:00 2001 From: Donny Peeters Date: Tue, 21 Nov 2023 16:08:01 +0100 Subject: [PATCH] Bugfix: only lowercase boolean parameters --- xtdb/session.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xtdb/session.py b/xtdb/session.py index 71eb7a2..96a0c5e 100644 --- a/xtdb/session.py +++ b/xtdb/session.py @@ -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