consider bool

This commit is contained in:
callebtc 2022-11-26 02:21:07 +01:00
parent 05d59cd7fa
commit 3e68d897ed

View File

@ -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"