treat the MYSQL_FIELD as read-only
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Sat, 17 Dec 2022 15:20:05 +0000 (15:20 +0000)
committerDmitry Shachnev <mitya57@debian.org>
Sat, 17 Dec 2022 15:20:05 +0000 (15:20 +0000)
commit285c66c71ba8ad8633b73a7a9eefc88dad628325
treebf845f1ff1253bbddf31880b8a7f4ef337573413
parent6e624e166add751dfeb4f7f2999f8ed49f5d7abd
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