OwnSQL: don't parse the error message when we are done
authorOlivier Goffart <ogoffart@woboq.com>
Mon, 25 Sep 2017 12:19:48 +0000 (14:19 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Thu, 5 Oct 2017 20:01:37 +0000 (22:01 +0200)
src/common/ownsql.cpp

index 2bda1ab0958167121817be19d4fe77b6f51fb898..d6eb9b8580e1f7f6341ce6adda1834d3d7cdb3d9 100644 (file)
@@ -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)); \
         }                                                    \
     }