Bug #64392 | MySQLCursor.description stores column names as bytes literals | ||
---|---|---|---|
Submitted: | 21 Feb 2012 9:09 | Modified: | 29 Jun 2012 8:45 |
Reporter: | Geert Vanderkelen | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / Python | Severity: | S3 (Non-critical) |
Version: | 0.3.2 | OS: | Any |
Assigned to: | Geert Vanderkelen | CPU Architecture: | Any |
[21 Feb 2012 9:09]
Geert Vanderkelen
[21 Feb 2012 9:15]
Geert Vanderkelen
Verified using Python 3.2.2 and latest code from source repository. Workaround is to do the decoding when showing/using the column names, something like this: for column in cursor.description: print("Column: {name}".format(name=column[0].decode()))
[29 Jun 2012 8:45]
Geert Vanderkelen
This is fixed and will be available in next release.