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 behaves differently to other implementation with regards to batch inserts #8
Comments
rusher
added a commit
that referenced
this issue
Nov 24, 2020
|
Thanks for report. |
This was referenced Mar 15, 2021
Closed
Closed
Closed
Closed
Bump r2dbc-mariadb from 0.8.2-alpha2 to 1.0.1 in /modules/mariadb
emerkle826/testcontainers-java#444
Closed
Closed
Bump r2dbc-mariadb from 0.8.3-beta1 to 1.0.1 in /modules/mariadb
gbastkowski/testcontainers-java#365
Closed
Bump r2dbc-mariadb from 0.8.3-beta1 to 1.0.1 in /modules/mariadb
outofcoffee/testcontainers-java#359
Closed
Closed
Closed
Closed
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The MariaDB implementation of batch inserts with prepared statements currently requires at least one statement to not be part of a batch when doing batch inserts with prepared statements otherwise an error such as the following occurs:
Looking at the validation logic in
MariadbClientParameterizedQueryStatementit does this:If you call
add()for the last batch statement then all entries inparametersare null and they exist only inbatchParameters. It seems to be that this check should only be executed ifbatchingParameters == nulland the validation check should be moved inside the if statement.This differs to other implementations whereby you can call
add()for each statement and execute them no problem. As a result of this I have to place a MariaDB specific hack into the code I am developing to allow batch inserts to execute across different implementations:micronaut-projects/micronaut-r2dbc@6c5ee41
The text was updated successfully, but these errors were encountered: