OwnSQL: don't parse the error message when we are done

This commit is contained in:
Olivier Goffart 2017-09-25 14:19:48 +02:00 committed by Roeland Jago Douma
parent ecb4e96794
commit a3b1597d17
No known key found for this signature in database
GPG key ID: F941078878347C0C

View file

@ -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)); \
} \
}