From baa241f26b565cb514d100f4b5488cf05aa99f72 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Tue, 6 Nov 2018 09:47:34 +0100 Subject: [PATCH] OwnSql: Speedup by avoiding allocating an error string on success --- 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 ff22eff52a..db4d3de5aa 100644 --- a/src/common/ownsql.cpp +++ b/src/common/ownsql.cpp @@ -34,7 +34,7 @@ #define SQLITE_DO(A) \ if (1) { \ _errId = (A); \ - if (_errId != SQLITE_OK && _errId != SQLITE_DONE) { \ + if (_errId != SQLITE_OK && _errId != SQLITE_DONE && _errId != SQLITE_ROW) { \ _error = QString::fromUtf8(sqlite3_errmsg(_db)); \ } \ }