Closed lizdeika closed 5 months ago
https://github.com/rinsed-org/rb-snowflake-client/pull/32
Made a PR for this to be solved:
json_string = '{"valid": "json"}'
query = "insert into tbl(data) select parse_json(?)"
bindings = {
"1": {
"type": "TEXT",
"value": json_string
}
}
client.query(query, bindings: bindings)
@lizdeika appreciate the contribution. It's now available in version 1.1.0
Say we have
tbl
table with adata
VARIANT columnThis will lead to an error something like this:
Because of some type of escapement and added slashes to the query