rbx doesn't have rb_obj_dup yet

This commit is contained in:
Brian Lopez 2010-09-04 11:50:54 -07:00
parent 9b401ba9b9
commit c110d0d263
1 changed files with 1 additions and 1 deletions

View File

@ -248,7 +248,7 @@ static VALUE rb_mysql_client_async_result(VALUE self) {
VALUE resultObj = rb_mysql_result_to_obj(result); VALUE resultObj = rb_mysql_result_to_obj(result);
// pass-through query options for result construction later // pass-through query options for result construction later
rb_iv_set(resultObj, "@query_options", rb_obj_dup(rb_iv_get(self, "@query_options"))); rb_iv_set(resultObj, "@query_options", rb_funcall(rb_iv_get(self, "@query_options"), rb_intern("dup"), 0));
#ifdef HAVE_RUBY_ENCODING_H #ifdef HAVE_RUBY_ENCODING_H
mysql2_result_wrapper * result_wrapper; mysql2_result_wrapper * result_wrapper;