Skip to content

MySQL: remove the version number checks in favor of actual functionality

Antonio Rojas requested to merge arojas/qtbase:mariadb-10.6 into kde/5.15

MariaDB library version 3.2 no longer returns the server version in the 10.x range but the library version itself, which is lower than 4.x. That meant we concluded the server did not support prepared statements.

And because of the lack of prepared statements, all QDateTime conversions failed, because of the timezone. I don't know if this was intended or what, but it's a side issue.

[ChangeLog][QtSql][MySQL] Fixed the detection of whether the client and server support prepared statements. This was caused by the mariadb connector library reporting its own version numbers (starting in version 3.2) instead of the server version.

BUG: 439769

Fixes: QTBUG-95071

Pick-to: 5.15 6.2

Change-Id: I4a40ccbd3321467a8429fffd1699bc089ba706e6

Reviewed-by: Andy Shaw

Reviewed-by: Fabian Vogt

(cherry picked from commit 21136913)

Edited by Antonio Rojas

Merge request reports