From eeb5ca42e034cdcad34a01ba3168df3d7f2862c4 Mon Sep 17 00:00:00 2001 From: Klaas Freitag Date: Wed, 15 Oct 2014 13:29:25 +0200 Subject: [PATCH] ownsql: Added some paranthisis to make clear whats happening. --- src/mirall/ownsql.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mirall/ownsql.cpp b/src/mirall/ownsql.cpp index 087bcda80b..c61f3d3f38 100644 --- a/src/mirall/ownsql.cpp +++ b/src/mirall/ownsql.cpp @@ -144,7 +144,7 @@ bool SqlQuery::exec() // Don't do anything for selects, that is how we use the lib :-| if(_stmt && !isSelect() && !isPragma() ) { SQLITE_DO(sqlite3_step(_stmt)); - return _errId == SQLITE_DONE; // either SQLITE_ROW or SQLITE_DONE + return (_errId == SQLITE_DONE); // either SQLITE_ROW or SQLITE_DONE } return true;