treat the MYSQL_FIELD as read-only
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Mon, 27 Feb 2023 08:28:53 +0000 (08:28 +0000)
committerDmitry Shachnev <mitya57@debian.org>
Mon, 27 Feb 2023 08:28:53 +0000 (08:28 +0000)
commit46c57b10a98e847c20f932aaecafc3ef85c5f9ac
treee393def490ee8ccdf89328ab98e4b287591445b5
parent302a2e2fe0671e4d2dbd797fc3511fa01915e5f9
treat the MYSQL_FIELD as read-only

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=549ee216fd5bf2b3
Last-Update: 2021-11-13

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.

Gbp-Pq: Name mysql_field_readonly.diff
src/plugins/sqldrivers/mysql/qsql_mysql.cpp