You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RuntimeError: (sqlalchemy.exc.InvalidRequestError) A value is required for bind parameter '1'
[SQL: select json('[{"a"?}, {"b"?}]')]
but when run in the duckdb cli the result is:
❯ duckdb
v0.9.2 3c695d7ba9
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
D select json('[{"a":1}, {"b":2}]');
┌────────────────────────────┐
│ json('[{"a":1}, {"b":2}]') │
│ json │
├────────────────────────────┤
│ [{"a":1},{"b":2}] │
└────────────────────────────┘
thanks for reporting this! this is related to #972, we can create a new option to disable parameter expansion because :1 is interpreted as a query parameter.
as a quick fix: adding a space (eg : 1) might fix the issue
What happens?
but when run in the duckdb cli the result is:
To Reproduce
OS:
macos
JupySQL Version:
0.10.7
Full Name:
Oliver Mannion
Affiliation:
Xero
The text was updated successfully, but these errors were encountered: