[Digikam-devel] [digikam] [Bug 345025] Wrong sql statement updating thumbnail modification date
Gilles Caulier
caulier.gilles at gmail.com
Tue Mar 10 21:52:08 GMT 2015
https://bugs.kde.org/show_bug.cgi?id=345025
--- Comment #4 from Gilles Caulier <caulier.gilles at gmail.com> ---
Git commit c88f5f53bca3aa0bb29fed90edb92b5ea3598ce1 by Gilles Caulier.
Committed on 10/03/2015 at 21:48.
Pushed by cgilles into branch 'frameworks'.
backport commit #5d2fcc5dd65724cc1e37f645956eb8d1010e861e from git/master to
frameworks branch
M +4 -4 libs/database/core/thumbnaildb.cpp
http://commits.kde.org/digikam/c88f5f53bca3aa0bb29fed90edb92b5ea3598ce1
diff --git a/libs/database/core/thumbnaildb.cpp
b/libs/database/core/thumbnaildb.cpp
index e330d83..76b782f 100644
--- a/libs/database/core/thumbnaildb.cpp
+++ b/libs/database/core/thumbnaildb.cpp
@@ -255,9 +255,9 @@ DatabaseCoreBackend::QueryState
ThumbnailDB::insertThumbnail(const DatabaseThumb
{
QVariant id;
DatabaseCoreBackend::QueryState lastQueryState;
- lastQueryState= d->db->execSql(QLatin1String("INSERT INTO Thumbnails
(type, modificationDate, orientationHint, data) VALUES (?, ?, ?, ?);"),
- info.type, info.modificationDate,
info.orientationHint, info.data,
- 0, &id);
+ lastQueryState = d->db->execSql(QLatin1String("INSERT INTO Thumbnails
(type, modificationDate, orientationHint, data) VALUES (?, ?, ?, ?);"),
+ info.type, info.modificationDate,
info.orientationHint, info.data,
+ 0, &id);
if (DatabaseCoreBackend::NoErrors == lastQueryState)
{
@@ -279,7 +279,7 @@ DatabaseCoreBackend::QueryState
ThumbnailDB::replaceThumbnail(const DatabaseThum
DatabaseCoreBackend::QueryState ThumbnailDB::updateModificationDate(int
thumbId, const QDateTime& modificationDate)
{
- return d->db->execSql(QLatin1String("UPDATE Thumbnails SET
modificationDate=? WHERE id=?;"), thumbId, modificationDate);
+ return d->db->execSql(QLatin1String("UPDATE Thumbnails SET
modificationDate=? WHERE id=?;"), modificationDate, thumbId);
}
void ThumbnailDB::replaceUniqueHash(const QString& oldUniqueHash, int
oldFileSize,
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Digikam-devel
mailing list