MySQL: treat the MYSQL_FIELD as read-only
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:
- https://jira.mariadb.org/browse/MDEV-26271
- https://github.com/MythTV/mythtv/issues/373
- https://bugs.kde.org/show_bug.cgi?id=440296
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