From cafcddbcb60879dbf28c58317bc9265aadc2a82d Mon Sep 17 00:00:00 2001 From: Jason Fried Date: Mon, 18 Mar 2019 13:19:07 -0700 Subject: [PATCH] Bug in _mysql_field_to_python when callback conversion is used the value is always passed as Str instead of bytes in python3. --- MySQLdb/_mysql.c | 1 + 1 file changed, 1 insertion(+) diff --git a/MySQLdb/_mysql.c b/MySQLdb/_mysql.c index 380e2ef6..3c846274 100644 --- a/MySQLdb/_mysql.c +++ b/MySQLdb/_mysql.c @@ -1147,6 +1147,7 @@ _mysql_field_to_python( #endif // Call converter with bytes binary = 1; + break; default: // e.g. FIELD_TYPE_DATETIME, etc. // Call converter with unicode string binary = 0;