Skip to content

Commit 996438e

Browse files
committed
Comment for missing field charset
1 parent 7380310 commit 996438e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/mysql2/result.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ static VALUE mysql2_set_field_string_encoding(VALUE val, MYSQL_FIELD field, rb_e
158158
if (field.flags & BINARY_FLAG && field.charsetnr == 63) {
159159
rb_enc_associate(val, binaryEncoding);
160160
} else if (!field.charsetnr) {
161+
/* MySQL 4.x may not provide an encoding, binary will get the bytes through */
161162
rb_enc_associate(val, binaryEncoding);
162163
} else {
163164
/* lookup the encoding configured on this field */

0 commit comments

Comments
 (0)