MySQL Forums
Forum List  »  Connector/Python

Connector 8.0.11 return binary keys???
Posted by: Danny Turrin
Date: May 09, 2018 09:16AM

Here are 2 example results from queries performed using MYSQL connector 8.0...

Before 8.0.11:

{'Expiration': datetime.datetime(2018, 5, 9, 14, 30, 40), 'IdUser': 143, 'Id': 9999999, 'Token': 'KAJGHKJ8976976JKHLJKH'}

With 8.0.11:

{b'Expiration': datetime.datetime(2018, 5, 9, 14, 30, 40), 'IdUser': 143, 'Id': 9999999, 'Token': 'KAJGHKJ8976976JKHLJKH'}

As you can see, the key for datetime objects is no longer a normal string, but a bytes literal.

Because of this, all the record parsing functionality is now broken because datetime values are no longer found in the query results.

Please let me know if there is an easy fix to this issue.

Options: ReplyQuote


Subject
Written By
Posted
Connector 8.0.11 return binary keys???
May 09, 2018 09:16AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.