Skip to content
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

Support for syntax not allowed as prepared statements #35

Open
paurkedal opened this issue Jan 17, 2021 · 2 comments
Open

Support for syntax not allowed as prepared statements #35

paurkedal opened this issue Jan 17, 2021 · 2 comments

Comments

@paurkedal
Copy link
Collaborator

MariaDB/MySQL does not allow certain syntax in prepared statements, so it seems, at least for now, the mysql_query and the related async functions are needed to support the full SQL language.

I had a look at it in connection with paurkedal/ocaml-caqti#42, but if I've understood the MariaDB documentation correctly, the result processing of the non-prepared API is quite orthogonal to that of the prepared API. I suspect it would require significant refactoring or split of the result handling.

@apeschar
Copy link
Contributor

apeschar commented Jul 2, 2022

MariaDB supports all syntax in prepared statements from version 10.6.2 (docs), making this issue irrelevant.

@paurkedal
Copy link
Collaborator Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants