I am using Python SNowflake Connector 2.4.1 to connect Python to Snowflake getting following error
"Binding Parameter Must Be list While Using Python Snowflake Connector"
I am Binding Sample_JSON String Containing JSON to SQL Query String Using Qmark , The Table Column is VARIANT type in Snowflake
Sample_JSON="{\"ABC\":\"VALUE\"}"
snowflake.connector.paramstyle='qmark'
ctx = snowflake.connector.connect(
user='something.com',,
account= 'something',
authenticator='externalbrowser'
)
cs = ctx.cursor()
try:
cs.execute("INSERT INTO TABLE (JOSN) VALUES(?)",(Sample_JSON) )
finally:
cs.close()
ctx.close()