Skip to content

Commit d4ef92d

Browse files
committed
Adding FIELD_TYPE_GEOMETRY as binary type fixes the issue of the UnicodeDecodeError and makes geometry types usable.
1 parent 91054f0 commit d4ef92d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

_mysql.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1373,6 +1373,7 @@ _mysql_field_to_python(
13731373
field_type == FIELD_TYPE_BLOB ||
13741374
field_type == FIELD_TYPE_VAR_STRING ||
13751375
field_type == FIELD_TYPE_STRING ||
1376+
field_type == FIELD_TYPE_GEOMETRY ||
13761377
field_type == FIELD_TYPE_BIT) {
13771378
binary = 1;
13781379
}

0 commit comments

Comments
 (0)