Skip to content

Commit d3a96b8

Browse files
committed
don't attempt to inline mysql2_set_field_string_encoding
1 parent 88b6330 commit d3a96b8

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
@@ -139,7 +139,7 @@ static VALUE rb_mysql_result_fetch_field(VALUE self, unsigned int idx, short int
139139
}
140140

141141
#ifdef HAVE_RUBY_ENCODING_H
142-
inline VALUE mysql2_set_field_string_encoding(VALUE val, MYSQL_FIELD field, rb_encoding *default_internal_enc, rb_encoding *conn_enc) {
142+
static VALUE mysql2_set_field_string_encoding(VALUE val, MYSQL_FIELD field, rb_encoding *default_internal_enc, rb_encoding *conn_enc) {
143143
// if binary flag is set, respect it's wishes
144144
if (field.flags & BINARY_FLAG && field.charsetnr == 63) {
145145
rb_enc_associate(val, binaryEncoding);

0 commit comments

Comments
 (0)