diff options
Diffstat (limited to 'libmysqlpp/my-modifycommand.cpp')
-rw-r--r-- | libmysqlpp/my-modifycommand.cpp | 4 |
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; } |