34 lines
1.2 KiB
Diff
34 lines
1.2 KiB
Diff
|
From 0ec637813bd04d042607ad2d36b70f61e4db7f70 Mon Sep 17 00:00:00 2001
|
||
|
From: Wolfgang Bauer <wbauer@tmo.at>
|
||
|
Date: Tue, 16 Jul 2019 17:34:58 +0200
|
||
|
Subject: [PATCH] Revert "Adapt DBInitializer to behavior change of QPSQL
|
||
|
driver in Qt 5.13"
|
||
|
|
||
|
This reverts commit 74aed9542ba1ff1e6e93a550c42869647c4eba8e.
|
||
|
Apparently it breaks things with MySQL/MariaDB.
|
||
|
|
||
|
We don't really need this fix anyway as we reverted the corresponding
|
||
|
change in Qt.
|
||
|
|
||
|
References: boo#1141604, kde#409753
|
||
|
---
|
||
|
src/server/storage/dbintrospector.cpp | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/src/server/storage/dbintrospector.cpp b/src/server/storage/dbintrospector.cpp
|
||
|
index 70d952a6f..224faf7f8 100644
|
||
|
--- a/src/server/storage/dbintrospector.cpp
|
||
|
+++ b/src/server/storage/dbintrospector.cpp
|
||
|
@@ -76,7 +76,7 @@ bool DbIntrospector::hasColumn(const QString &tableName, const QString &columnNa
|
||
|
QStringList columns = m_columnCache.value(tableName);
|
||
|
|
||
|
if (columns.isEmpty()) {
|
||
|
- const QSqlRecord table = m_database.record(tableName.toLower());
|
||
|
+ const QSqlRecord table = m_database.record(tableName);
|
||
|
const int numTables = table.count();
|
||
|
columns.reserve(numTables);
|
||
|
for (int i = 0; i < numTables; ++i) {
|
||
|
--
|
||
|
2.16.4
|
||
|
|