Skip to content

MySQL: treat the MYSQL_FIELD as read-only

Fabian Vogt requested to merge fvogt/qtbase:work/prepmaria into kde/5.15

The MariaDB-connector-c version 3.2 and MariaDB server version 10.6 cooperate to avoid re-transferring the query metadata, so the fact that we were modifying it was causing it to improperly decode the DATETIME data types into string, as we had asked. We ended up with a 7-byte string that was actually the date binary-encoded.

References:

Fixes: QTBUG-95639 Change-Id: I4a40ccbd3321467a8429fffd169afdbb26cf29f6 Reviewed-by: Andy Shaw andy.shaw@qt.io (cherry picked from commit 549ee216) Reviewed-by: Qt Cherry-pick Bot cherrypick_bot@qt-project.org (cherry picked from commit 94d22e0b

Backported from https://codereview.qt-project.org/c/qt/qtbase/+/365471.

Draft because not tested yet.

Edited by Fabian Vogt

Merge request reports