Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d4ef92d

Browse filesBrowse 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
Copy full SHA for d4ef92d

File tree

Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed

‎_mysql.c

Copy file name to clipboardExpand all lines: _mysql.c
+1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.