From 6aadd43ff4fd84c969c21cd0b246f355030582be Mon Sep 17 00:00:00 2001 From: Albert S Date: Mon, 5 Nov 2018 10:48:30 +0100 Subject: [PATCH] execInt: rethrow if no_rows, so callers can handle it --- database/sqlitedao.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/database/sqlitedao.cpp b/database/sqlitedao.cpp index 5e26c36..9ec8771 100644 --- a/database/sqlitedao.cpp +++ b/database/sqlitedao.cpp @@ -44,6 +44,10 @@ int SqliteDao::execInt(sqlite::database_binder &binder) const binder >> result; return result; } + catch(sqlite::exceptions::no_rows &e) + { + throw; + } catch(sqlite::sqlite_exception &e) { throwFrom(e);