Bug #93065 Contribution: Return raw bytes or bytearray if decoding fails
Submitted: 2 Nov 2018 14:54 Modified: 4 Mar 16:39
Reporter: OCA Admin (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / Python Severity:S3 (Non-critical)
Version: OS:Any
Assigned to: CPU Architecture:Any

[2 Nov 2018 14:54] OCA Admin
Description:
This bug tracks a contribution by Meik Milevczik (Github user: meikomeik) as described in http://github.com/mysql/mysql-connector-python/pull/45

How to repeat:
See description

Suggested fix:
See contribution code attached
[2 Nov 2018 14:54] OCA Admin
Contribution submitted via Github - Return raw bytes or bytearray if decoding fails 
(*) Contribution by Meik Milevczik (Github meikomeik, mysql-connector-python/pull/45#issuecomment-435397655): I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.

Contribution: git_patch_225792657.txt (text/plain), 1.08 KiB.

[2 Nov 2018 15:35] MySQL Verification Team
Thank you for the contribution.
[4 Mar 16:39] Philip Olson
Posted by developer:
 
Fixed as of the upcoming MySQL Connector/Python 8.0.29 release, and here's the proposed changelog entry from the documentation team:

If decoding a bytearray fails, now the raw bytes or bytearray is returned
instead of raising a UnicodeDecodeError error. Thanks to Meik Milevczik
for the patch.

Thank you for the bug report.