diff --git a/frappe/query_builder/utils.py b/frappe/query_builder/utils.py index f4a256d278..71cfa88db1 100644 --- a/frappe/query_builder/utils.py +++ b/frappe/query_builder/utils.py @@ -89,17 +89,7 @@ def patch_query_execute(): pass else: raise frappe.PermissionError("Only SELECT SQL allowed in scripting") - params = param_collector.get_parameters() - - # wrap boolean values as integer since we save Check as smallint and pg doesn't - # like boolean values in place of ints and frappe doesn't support Boolean types - # explicitly. - if frappe.conf.db_type == "postgres": - for k, v in params.items(): - if isinstance(v, bool): - params[k] = int(v) - - return query, params + return query, param_collector.get_parameters() query_class = get_attr(str(frappe.qb).split("'")[1]) builder_class = get_type_hints(query_class._builder).get("return")