consider bool
This commit is contained in:
parent
175516f8e4
commit
ecec9e9596
1 changed files with 1 additions and 1 deletions
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue