From 97c3d4c1604b525e4522814e34723488c59a83f5 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 29 Dec 2015 02:42:43 +0000 Subject: Reshuffle and add new exceptions --- libmysqlpp/my-modifycommand.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libmysqlpp/my-modifycommand.cpp') 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; } -- cgit v1.2.3