Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
3.2.4
-
None
Description
When you disable the option MARIADB_OPT_MULTI_STATEMENTS doc-link on the driver, the driver sometimes ignores the option and still rewrites the query outputting multiple statements.
The function `assembleBatchRewriteQuery` in "ClientPrepareResult.cpp" ignores the option.
See the part after "if (knownParameterSize) {" link
When you have a batched call, the driver rewrites it to a multi statements, which could be gets rejected by the database, if multistatement is disabled.
edit:formatting