diff options
Diffstat (limited to 'libmysqlpp/my-modifycommand.cpp')
-rw-r--r-- | libmysqlpp/my-modifycommand.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libmysqlpp/my-modifycommand.cpp b/libmysqlpp/my-modifycommand.cpp index 7610a27..dd607b3 100644 --- a/libmysqlpp/my-modifycommand.cpp +++ b/libmysqlpp/my-modifycommand.cpp @@ -12,10 +12,10 @@ unsigned int MySQL::ModifyCommand::execute(bool anc) { bindParams(); - if (mysql_stmt_execute(stmt)) { - throw Error(stmt); + if (mysql_stmt_execute(stmt.get())) { + throw Error(stmt.get()); } - int rows = mysql_stmt_affected_rows(stmt); + int rows = mysql_stmt_affected_rows(stmt.get()); if (rows == 0 && !anc) { throw DB::NoRowsAffected(); } |