[Pkg-owncloud-commits] [owncloud-client] 43/175: SyncJournalDB: Don't use NULL value

Sandro Knauß hefee-guest at moszumanska.debian.org
Sat Aug 8 10:36:25 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 8a397486548beed1ad505a7e56211ccf49d50b5d
Author: Markus Goetz <markus at woboq.com>
Date:   Wed May 13 14:57:14 2015 +0200

    SyncJournalDB: Don't use NULL value
    
    Olivier says we should try to not be the same as the possible value
    for not existing entries.
---
 src/libsync/syncjournaldb.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libsync/syncjournaldb.cpp b/src/libsync/syncjournaldb.cpp
index 9c35269..ce2bf03 100644
--- a/src/libsync/syncjournaldb.cpp
+++ b/src/libsync/syncjournaldb.cpp
@@ -333,7 +333,7 @@ bool SyncJournalDb::checkConnect()
     if (forceRemoteDiscovery) {
         qDebug() << "Forcing remote re-discovery by deleting folder Etags";
         SqlQuery deleteRemoteFolderEtagsQuery(_db);
-        deleteRemoteFolderEtagsQuery.prepare("UPDATE metadata SET md5=NULL WHERE type=2;");
+        deleteRemoteFolderEtagsQuery.prepare("UPDATE metadata SET md5='_invalid_' WHERE type=2;");
         if( !deleteRemoteFolderEtagsQuery.exec() ) {
             qDebug() << "ERROR: Query failed" << deleteRemoteFolderEtagsQuery.error();
         } else {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list