From: Olivier Goffart Date: Mon, 25 Sep 2017 12:19:48 +0000 (+0200) Subject: OwnSQL: don't parse the error message when we are done X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~701^2~38 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a3b1597d173208647bfb37166e7be0d5ed7bd74c;p=nextcloud-desktop.git OwnSQL: don't parse the error message when we are done --- diff --git a/src/common/ownsql.cpp b/src/common/ownsql.cpp index 2bda1ab09..d6eb9b858 100644 --- a/src/common/ownsql.cpp +++ b/src/common/ownsql.cpp @@ -33,7 +33,7 @@ #define SQLITE_DO(A) \ if (1) { \ _errId = (A); \ - if (_errId != SQLITE_OK) { \ + if (_errId != SQLITE_OK && _errId != SQLITE_DONE) { \ _error = QString::fromUtf8(sqlite3_errmsg(_db)); \ } \ }