summaryrefslogtreecommitdiff
path: root/libpqpp/pq-modifycommand.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-12-29 02:42:43 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2015-12-29 06:00:07 +0000
commitda82e9c8f09f3e471044f8b52ede478ac4d5bc04 (patch)
treeeb8c79922a088398ad2e155dec0d6e831a1378ba /libpqpp/pq-modifycommand.cpp
parentRemove rebind (diff)
downloadlibdbpp-postgresql-da82e9c8f09f3e471044f8b52ede478ac4d5bc04.tar.bz2
libdbpp-postgresql-da82e9c8f09f3e471044f8b52ede478ac4d5bc04.tar.xz
libdbpp-postgresql-da82e9c8f09f3e471044f8b52ede478ac4d5bc04.zip
Reshuffle and add new exceptions
Diffstat (limited to 'libpqpp/pq-modifycommand.cpp')
-rw-r--r--libpqpp/pq-modifycommand.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpqpp/pq-modifycommand.cpp b/libpqpp/pq-modifycommand.cpp
index e07af0b..1e9f434 100644
--- a/libpqpp/pq-modifycommand.cpp
+++ b/libpqpp/pq-modifycommand.cpp
@@ -37,7 +37,7 @@ PQ::ModifyCommand::execute(bool anc)
unsigned int rows = atoi(PQcmdTuples(res));
PQclear(res);
if (rows == 0 && !anc) {
- throw Error("No rows affected");
+ throw DB::NoRowsAffected();
}
return rows;
}