-
Notifications
You must be signed in to change notification settings - Fork 126
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
refinery_cli: ERROR: cannot insert multiple commands into a prepared statement #314
Comments
Hi, and thanks for the interest! Can you identify which migration is causing the issue? You can use |
I can, it is the very first migration we have. Did some stepping through the code and it is correctly called with batch_execute, but it always fails with above mentioned error. It is fairly large migration rollup, involving creation of multiple different tables, calling Citus functions on them, creating constraints and such. Flyway seems to have no issues with it. Probably won't be able to post the exact migration, but will try to create something simpler to trigger in free time. |
ok thanks! Would love to be able to address that issue |
I have created a simple migration which triggers this issue:
Removing the last |
Huh! So if you run it against PostgresSQL it works? |
Can't really try it against just PostgreSQL as the |
This probably has to do with the driver we use |
Hello, I have decided to test refinery to see if it'd work for my team, but ran into an issue.
When attempting to run
refinery migrate
, I always receive this error:ERROR: cannot insert multiple commands into a prepared statement
I have found a Github issue that mentions this issue but it seems to have been resolved: #21
I am running version 0.8.12, built from crates.io.
Database type is set to "Postgres", but note that we use Citus extension on top of PG.
Our migrations are usually wrapped in their own transaction and include function calls.
Example of typical migration:
I did a cursory glance at the source code and haven't noticed any explicit use of prepared statements. Running these migration scripts by hand works without issues (using DBeaver).
The text was updated successfully, but these errors were encountered: