akonadi-server/0001-Revert-Adapt-DBInitializer-to-behavior-change-of-QPS.patch
Luca Beltrame 01a7591fcc Accepting request 716045 from home:wolfi323:branches:KDE:Applications
- Add patch to revert upstream PostgreSQL fix that apparently
  causes problems with MySQL (boo#1141604, kde#409753):
  * 0001-Revert-Adapt-DBInitializer-to-behavior-change-of-QPS.patch

OBS-URL: https://build.opensuse.org/request/show/716045
OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/akonadi-server?expand=0&rev=196
2019-07-18 05:13:51 +00:00

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