Skip to content

Commit 8f8c947

Browse files
committed
no need to wrap the query call for win32
1 parent e019c0e commit 8f8c947

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/mysql2/client.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,8 @@ static VALUE rb_mysql_client_query(int argc, VALUE * argv, VALUE self) {
475475
return Qnil;
476476
}
477477
#else
478-
rb_ensure(do_send_query, (VALUE)&args, finish_and_mark_inactive, self);
478+
do_send_query(&args);
479+
479480
// this will just block until the result is ready
480481
return rb_ensure(rb_mysql_client_async_result, self, finish_and_mark_inactive, self);
481482
#endif

0 commit comments

Comments
 (0)