SNOW-1510090: Adding support for passing nil to variant columns #1170
Labels
question
Issue is a usage/other question rather than a bug
status-triage_done
Initial triage done, will be further handled by the driver team
What is the current behavior?
My code
_, err = db.ExecContext(ctx, "INSERT INTO test_variant SELECT ?", nil)
The above results in
What is the desired behavior?
Being able to pass nil to variant columns while binding
How would this improve
gosnowflake
?It would make it easier to work with variant columns.
The current workaround we're making use of involves wrapping it with a TRY_PARSE_JSON/PARSE_JSON :
_, err = db.ExecContext(ctx, "INSERT INTO test_variant SELECT TRY_PARSE_JSON(?)", nil)
The text was updated successfully, but these errors were encountered: