From a3b1597d173208647bfb37166e7be0d5ed7bd74c Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Mon, 25 Sep 2017 14:19:48 +0200 Subject: [PATCH] OwnSQL: don't parse the error message when we are done --- src/common/ownsql.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); \ } \ } -- 2.30.2