From 3e68d897ed1a5bc81c67e8694a4a0ce32322e176 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 35296df6f..f483ae1ab 100644 --- a/tools/conv.py +++ b/tools/conv.py @@ -160,7 +160,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"