Skip to content

Commit

Permalink
Missed in the #672 rebase: rb_raise_mysql2_stmt_error takes a stmt_wr…
Browse files Browse the repository at this point in the history
…apper now
  • Loading branch information
sodabrew committed Sep 11, 2015
1 parent 0059051 commit de7c375
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/mysql2/statement.c
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ static VALUE rb_mysql_stmt_affected_rows(VALUE self) {

affected = mysql_stmt_affected_rows(stmt_wrapper->stmt);
if (affected == (my_ulonglong)-1) {
rb_raise_mysql2_stmt_error(self);
rb_raise_mysql2_stmt_error(stmt_wrapper);
}

return ULL2NUM(affected);
Expand Down

0 comments on commit de7c375

Please sign in to comment.