Treat BIT as binary type.

This commit is contained in:
INADA Naoki
2015-04-08 23:04:10 +09:00
parent 06905e5e6f
commit 04896fc6f5
2 changed files with 3 additions and 2 deletions

View File

@ -1372,7 +1372,8 @@ _mysql_field_to_python(
field_type == FIELD_TYPE_LONG_BLOB ||
field_type == FIELD_TYPE_BLOB ||
field_type == FIELD_TYPE_VAR_STRING ||
field_type == FIELD_TYPE_STRING) {
field_type == FIELD_TYPE_STRING ||
field_type == FIELD_TYPE_BIT) {
binary = 1;
}
#endif