Skip to content

Commit acb6001

Browse files
committed
fix retart bug around symbol encoding support
1 parent b2ce41a commit acb6001

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/mysql2/result.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ static VALUE rb_mysql_result_fetch_field(VALUE self, unsigned int idx, short int
122122
#ifdef HAVE_RUBY_ENCODING_H
123123
rb_enc_associate(colStr, rb_utf8_encoding());
124124
#endif
125-
rb_field = ID2SYM(colStr);
125+
rb_field = ID2SYM(rb_to_id(colStr));
126126
} else {
127127
rb_field = rb_str_new(field->name, field->name_length);
128128
#ifdef HAVE_RUBY_ENCODING_H

0 commit comments

Comments
 (0)