-
Notifications
You must be signed in to change notification settings - Fork 37
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
MariaDB driver should not use prepared statement protocol when oneshot is true #42
Comments
I didn't realise there were such restrictions. Yes,
which seems reasonable, though in light of the limitations of the prepared statements, it would be good to find a solution for non-prepared statements. CC @andrenth |
Hello I don't currently have the resources to work on supporting non-prepared statements, but I would gladly accept a PR implementing them. |
I haven't had time either yet, but I hope to make a PR soon, though probably not the coming two weeks. |
MariaDB supports all syntax in prepared statements from version 10.6.2 (docs), making this issue irrelevant. |
It may be too early to expect people to upgrade their database servers. At least Ubuntu 20.04 LTS and RHEL 7 and 8, which are still under support, distribute older versions. |
First of all, thanks for this great project!
I am running into an issue while running migrations for following query on MariaDB 10.1.41:
I tried to track down the issue, but I am not sure what the underlying MariaDB library is doing.
In caqti_driver_mariadb.ml:
Even though the query id is None (due to oneshot being true), Mdb.prepare is called. I assume this is using the prepared statement protocol?
The text was updated successfully, but these errors were encountered: