Bug #83513 | JSON integer is casted to bytes instead of a python integer | ||
---|---|---|---|
Submitted: | 25 Oct 2016 8:45 | Modified: | 9 Mar 2018 21:04 |
Reporter: | Daniël van Eeden (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / Python | Severity: | S3 (Non-critical) |
Version: | OS: | Any | |
Assigned to: | CPU Architecture: | Any |
[25 Oct 2016 8:45]
Daniël van Eeden
[25 Oct 2016 10:57]
Chiranjeevi Battula
Hello Daniël, Thank you for the bug report and test case. Verified this behavior on MySQL Connector/Python 2.1.4. Thanks, Chiranjeevi.
[25 Oct 2016 11:01]
Chiranjeevi Battula
output: Driver: mysql.connector 2.1.4 MySQL version: 5.7.16-log —————————— ROW ————————————————————————————————————————————————————— VALUE | JSON TYPE | Python Type b'1' | INTEGER | <class 'bytes'> —————————— ROW ————————————————————————————————————————————————————— VALUE | JSON TYPE | Python Type b'1' | INTEGER | <class 'bytes'> >>>
[9 Mar 2018 21:04]
Philip Olson
Posted by developer: Fixed as of the upcoming MySQL Connector/Python 8.0.11 release, and here's the changelog entry: JSON integer values were cast to bytes in Python instead of integers. Thank you for the bug report.
[2 May 2018 22:09]
Philip Olson
Posted by developer: This fix in 8.0.11 was backported to the upcoming MySQL Connector/Python 2.1.8 release.