mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
OwnSql: Speedup by avoiding allocating an error string on success
This commit is contained in:
parent
f0d264651b
commit
baa241f26b
@ -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)); \
|
||||
} \
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user