Skip to content

Commit

Permalink
fix retart bug around symbol encoding support
Browse files Browse the repository at this point in the history
  • Loading branch information
brianmario committed Aug 17, 2011
1 parent b2ce41a commit acb6001
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/mysql2/result.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ static VALUE rb_mysql_result_fetch_field(VALUE self, unsigned int idx, short int
#ifdef HAVE_RUBY_ENCODING_H
rb_enc_associate(colStr, rb_utf8_encoding());
#endif
rb_field = ID2SYM(colStr);
rb_field = ID2SYM(rb_to_id(colStr));
} else {
rb_field = rb_str_new(field->name, field->name_length);
#ifdef HAVE_RUBY_ENCODING_H
Expand Down

0 comments on commit acb6001

Please sign in to comment.