Adding FIELD_TYPE_GEOMETRY as binary type fixes the issue of the UnicodeDecodeError and makes geometry types usable.

This commit is contained in:
Philipp Spitzer
2015-07-21 21:50:46 +02:00
parent 91054f07cb
commit d4ef92d43a

View File

@ -1373,6 +1373,7 @@ _mysql_field_to_python(
field_type == FIELD_TYPE_BLOB ||
field_type == FIELD_TYPE_VAR_STRING ||
field_type == FIELD_TYPE_STRING ||
field_type == FIELD_TYPE_GEOMETRY ||
field_type == FIELD_TYPE_BIT) {
binary = 1;
}