You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MariaDB 10.5.1+ support to use INSERT ... RETURNING col1[, col2[, col3...]] for returns a result-set of the inserted rows. The response looks like the execution result of a SELECT statement, and the last OkMessage will NOT contain the updated rows.
It will change the logic of MySqlStatement.returnGeneratedValues in MariaDB 10.5.1+ .
Motivation:
Add `RETURNING` clause support for MariaDB 10.5.1+ .
See also #177 .
Modification:
Add `RETURNING` clause in `MySqlStatement#returnGeneratedValues` and
query message packets.
Result:
For MariaDB 10.5.1 and above, `MySqlStatement#returnGeneratedValues`
will use `RETURNING` clause instead of `LAST_INSERT_ID`.
Notice:
For MariaDB 10.5.0 and below, `MySqlStatement#returnGeneratedValues`
will still use `LAST_INSERT_ID` due to these versions do not support
`RETURNING` clause.
MariaDB 10.5.1+ support to use
INSERT ... RETURNING col1[, col2[, col3...]]
for returns a result-set of the inserted rows. The response looks like the execution result of aSELECT
statement, and the lastOkMessage
will NOT contain the updated rows.It will change the logic of
MySqlStatement.returnGeneratedValues
in MariaDB 10.5.1+ .See also https://mariadb.com/kb/en/insertreturning/
The text was updated successfully, but these errors were encountered: