path: root/src/plugins/sqldrivers/mysql
diff options
authorChristian Ehrlicher <>2019-12-30 19:42:33 +0100
committerChristian Ehrlicher <>2020-01-03 14:55:48 +0100
commitb3f94eba6d4a329b5c64c7fb60ba33e3a8df301e (patch)
treedcf9aefbf25f015875590c134491161fa4f2ad14 /src/plugins/sqldrivers/mysql
parent947704cefe9e8723c8c9bb332268dcedb1ea1060 (diff)
SQL: add proper support to build QMYSQL with MariaDB client libraries
The QMYSQL plugin can also be build with the MariaDB client libraries since they are source compatible. But the MariaDB libraries could not be found on windows because the library name differs. Therefore add the correct library names and update the documentation to make clear that MariaDB is supported through the QMYSQL plugin. [ChangeLog][Sql][QMYSQL] The QMYSQL plugin can now be build with the MariaDB C connector libs on Windows. Change-Id: Id99f8be96c4179fd2321b3e61c90bb300c53bb82 Reviewed-by: Marius Kittler <> Reviewed-by: Andy Shaw <>
Diffstat (limited to 'src/plugins/sqldrivers/mysql')
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/sqldrivers/mysql/main.cpp b/src/plugins/sqldrivers/mysql/main.cpp
index d8d70483ef..4c6753097f 100644
--- a/src/plugins/sqldrivers/mysql/main.cpp
+++ b/src/plugins/sqldrivers/mysql/main.cpp
@@ -61,7 +61,9 @@ QMYSQLDriverPlugin::QMYSQLDriverPlugin()
QSqlDriver* QMYSQLDriverPlugin::create(const QString &name)
- if (name == QLatin1String("QMYSQL") || name == QLatin1String("QMYSQL3")) {
+ if (name == QLatin1String("QMYSQL") ||
+ name == QLatin1String("QMYSQL3") ||
+ name == QLatin1String("QMARIADB")) {
QMYSQLDriver* driver = new QMYSQLDriver();
return driver;