-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot execute multi-statement queries #46
Comments
Thanks for reporting this. I've tested multiple statements with other DuckDB drivers (Rust, Python). Until we have a fix, I would suggest to merge your quick fix. Could you please open a PR? |
Yeah, I noticed the I submitted a PR for my fix, but please beware that I put it together very quickly, so please double-check it before merging. |
Thanks, I've tested and merged the PR. |
I've reopened this and requested an ExtractStatements function for the C API. See duckdb/duckdb#4977 |
I think we can close this. |
This didn't take long, but I encountered a bug with the refactored bindings. Seems like prepared statements can't be used for multi-statement queries.
Executing a query that contains multiple statements, such as:
Outputs the following error:
I don't know how other DB drivers deal with this, but one idea is to only use prepared statements for queries that have args? (Not sure if that has its own caveats.)
The text was updated successfully, but these errors were encountered: