[#7494] Use option
to set MySQL and MariaDB options (4-3-stable)
#8641
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue quick link: #7494
This PR attempts to fix the issue relating to MariaDB having unexpected behavior by setting
option
to return the number of found rows instead of the number of changed rows. The settings inoption
are set by toggling the relevant bits, e.g.,2
sets bit1
which is equivalent to enablingFOUND_ROWS
in MySQL.option
is used here since MariaDB does not support some MySQL aliases such asFOUND_ROWS
. They must be set inoption
.The relevant MySQL documentation for
option
can be found here: https://dev.mysql.com/doc/connector-odbc/en/connector-odbc-configuration-connection-parameters.html#codbc-dsn-option-flagsThe documentation for MariaDB
option
can be found here: https://mariadb.com/docs/connectors/mariadb-connector-odbc/mariadb-connector-odbc-guide#general-connection-parametersBefore getting out of draft the following will be completed:
option
:BIG_PACKETS
andFOUND_ROWS
.BIG_PACKETS
.FOUND_ROWS
.