summaryrefslogtreecommitdiff
path: root/libmysqlpp/my-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
commit97c3d4c1604b525e4522814e34723488c59a83f5 (patch)
treecd9ca0e4b7013d4af1c85c4a677a2cbb12bb9603 /libmysqlpp/my-modifycommand.cpp
parentRemove rebind (diff)
downloadlibdbpp-mysql-97c3d4c1604b525e4522814e34723488c59a83f5.tar.bz2
libdbpp-mysql-97c3d4c1604b525e4522814e34723488c59a83f5.tar.xz
libdbpp-mysql-97c3d4c1604b525e4522814e34723488c59a83f5.zip
Reshuffle and add new exceptions
Diffstat (limited to 'libmysqlpp/my-modifycommand.cpp')
-rw-r--r--libmysqlpp/my-modifycommand.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmysqlpp/my-modifycommand.cpp b/libmysqlpp/my-modifycommand.cpp
index c66c628..9326afe 100644
--- a/libmysqlpp/my-modifycommand.cpp
+++ b/libmysqlpp/my-modifycommand.cpp
@@ -19,11 +19,11 @@ MySQL::ModifyCommand::execute(bool anc)
{
bindParams();
if (mysql_stmt_execute(stmt)) {
- throw Error(mysql_stmt_error(stmt));
+ throw Error(stmt);
}
int rows = mysql_stmt_affected_rows(stmt);
if (rows == 0 && !anc) {
- throw Error("No rows affected");
+ throw DB::NoRowsAffected();
}
return rows;
}