From c07d0f66ef4de201deeab0db17585ebb02f1e716 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 8be75f2..24e0523 100644 --- a/database/sqlitedao.cpp +++ b/database/sqlitedao.cpp @@ -45,6 +45,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);