diff options
author | Stephan Springer | 2021-07-15 18:16:35 +0200 |
---|---|---|
committer | Stephan Springer | 2021-07-15 18:16:35 +0200 |
commit | 2d8ba77586be98dea949fedcf41a754e5206be12 (patch) | |
tree | c66d585ffee430987a38d581a260b988f9414abe /qt5-base-mariadb-10.6.patch | |
parent | 5856370b9b92243cc03c6cdfc713787e1e9e2089 (diff) | |
download | aur-2d8ba77586be98dea949fedcf41a754e5206be12.tar.gz |
update to version 5.15.2+kde+r210
Diffstat (limited to 'qt5-base-mariadb-10.6.patch')
-rw-r--r-- | qt5-base-mariadb-10.6.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/qt5-base-mariadb-10.6.patch b/qt5-base-mariadb-10.6.patch new file mode 100644 index 000000000000..cebbafd4b470 --- /dev/null +++ b/qt5-base-mariadb-10.6.patch @@ -0,0 +1,23 @@ +diff --git a/src/plugins/sqldrivers/mysql/qsql_mysql.cpp b/src/plugins/sqldrivers/mysql/qsql_mysql.cpp +index a641935dc5..19e6a8286d 100644 +--- a/src/plugins/sqldrivers/mysql/qsql_mysql.cpp ++++ b/src/plugins/sqldrivers/mysql/qsql_mysql.cpp +@@ -1355,7 +1355,7 @@ bool QMYSQLDriver::open(const QString& db, + } + + #if MYSQL_VERSION_ID >= 50007 +- if (mysql_get_client_version() >= 50503 && mysql_get_server_version(d->mysql) >= 50503) { ++ if (true) { + // force the communication to be utf8mb4 (only utf8mb4 supports 4-byte characters) + mysql_set_character_set(d->mysql, "utf8mb4"); + #if QT_CONFIG(textcodec) +@@ -1371,8 +1371,7 @@ bool QMYSQLDriver::open(const QString& db, + } + #endif // MYSQL_VERSION_ID >= 50007 + +- d->preparedQuerysEnabled = mysql_get_client_version() >= 40108 +- && mysql_get_server_version(d->mysql) >= 40100; ++ d->preparedQuerysEnabled = true; + + #if QT_CONFIG(thread) + mysql_thread_init(); |