mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-15 11:10:58 +08:00
Adding FIELD_TYPE_GEOMETRY as binary type fixes the issue of the UnicodeDecodeError and makes geometry types usable.
This commit is contained in:
1
_mysql.c
1
_mysql.c
@ -1373,6 +1373,7 @@ _mysql_field_to_python(
|
|||||||
field_type == FIELD_TYPE_BLOB ||
|
field_type == FIELD_TYPE_BLOB ||
|
||||||
field_type == FIELD_TYPE_VAR_STRING ||
|
field_type == FIELD_TYPE_VAR_STRING ||
|
||||||
field_type == FIELD_TYPE_STRING ||
|
field_type == FIELD_TYPE_STRING ||
|
||||||
|
field_type == FIELD_TYPE_GEOMETRY ||
|
||||||
field_type == FIELD_TYPE_BIT) {
|
field_type == FIELD_TYPE_BIT) {
|
||||||
binary = 1;
|
binary = 1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user