From: Olivier Goffart Date: Tue, 6 Nov 2018 08:47:34 +0000 (+0100) Subject: OwnSql: Speedup by avoiding allocating an error string on success X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~468^2~427 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7e1840bb2f7fdaac3dfa75fb61cc21b2066a8e29;p=nextcloud-desktop.git OwnSql: Speedup by avoiding allocating an error string on success --- diff --git a/src/common/ownsql.cpp b/src/common/ownsql.cpp index b9a71dd3e..6b3584642 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)); \ } \ }