From ecec9e959622e9719e614ce7d11e1222dc860fd1 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Sat, 26 Nov 2022 02:21:07 +0100 Subject: [PATCH] consider bool --- tools/conv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/conv.py b/tools/conv.py index dbe750636..4a9ad0d5a 100644 --- a/tools/conv.py +++ b/tools/conv.py @@ -155,7 +155,7 @@ def build_insert_query(schema, tableName, columns): def to_column_type(columnType): if columnType == "TIMESTAMP": return "to_timestamp(%s)" - if columnType == "BOOLEAN": + if columnType in ["BOOLEAN", "BOOL"]: return "%s::boolean" return "%s"