Update block_wrapper.py
This commit is contained in:
parent
d6bd8e6abc
commit
f2d318832f
@ -104,6 +104,10 @@ def construct_sql(input_data):
|
|||||||
sql_template = sql_file.read()
|
sql_template = sql_file.read()
|
||||||
for key, value in input_data.items():
|
for key, value in input_data.items():
|
||||||
placeholder = f"${key}"
|
placeholder = f"${key}"
|
||||||
|
|
||||||
|
if value is None:
|
||||||
|
replacement = "NULL"
|
||||||
|
|
||||||
if isinstance(value, str):
|
if isinstance(value, str):
|
||||||
value = f"'{value}'"
|
value = f"'{value}'"
|
||||||
elif isinstance(value, bool):
|
elif isinstance(value, bool):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user