projects
/
nextcloud-desktop.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e55ce6
)
OwnSql: Speedup by avoiding allocating an error string on success
author
Olivier Goffart
<ogoffart@woboq.com>
Tue, 6 Nov 2018 08:47:34 +0000
(09:47 +0100)
committer
Kevin Ottens
<kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:58:18 +0000
(10:58 +0100)
src/common/ownsql.cpp
patch
|
blob
|
history
diff --git
a/src/common/ownsql.cpp
b/src/common/ownsql.cpp
index b9a71dd3e18fbaa7bea1525e33aa7232f7ab9df3..6b3584642c6dbea78d4db609b19b30528331b1d6 100644
(file)
--- 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)); \
} \
}