aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorModestas Vainius <[email protected]>2019-01-04 17:39:40 +0100
committerDaniel Vr├ítil <[email protected]>2019-01-04 17:39:57 +0100
commit2db662a26c0515ba5b0b11602bdaf59c5cad7726 (patch)
treefa9a52c33d49b1e77cb58836467879ae8aa766d7
parent3e47fbc309fafc6cfee0caa88452b1ef49c8a76f (diff)
Fix SQL syntax error in findOrphanedItems()
Summary: SQL UPDATE does not support full field name: PimItemTable.collectionId = :0 vs collectionId = :0 in its SET part. Reviewers: #kde_pim, dvratil Reviewed By: #kde_pim, dvratil Subscribers: dvratil, kde-pim Tags: #kde_pim Differential Revision: https://phabricator.kde.org/D17876
-rw-r--r--src/server/storagejanitor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/storagejanitor.cpp b/src/server/storagejanitor.cpp
index 7e9a90a..58e6df2 100644
--- a/src/server/storagejanitor.cpp
+++ b/src/server/storagejanitor.cpp
@@ -309,7 +309,7 @@ void StorageJanitor::findOrphanedItems()
if (col == -1) {
return;
}
- qb.setColumnValue(PimItem::collectionIdFullColumnName(), col);
+ qb.setColumnValue(PimItem::collectionIdColumn(), col);
QVector<ImapSet::Id> imapIds;
imapIds.reserve(orphans.count());
for (const PimItem &item : qAsConst(orphans)) {