[CONPY-270] string coercion not applied to UUID when value is in RETURNING, contradicting cursor.description Created: 2023-09-29 Updated: 2023-10-11 Resolved: 2023-10-11 |
|
| Status: | Closed |
| Project: | MariaDB Connector/Python |
| Component/s: | DBAPI 2.0 |
| Affects Version/s: | 1.1.7 |
| Fix Version/s: | 1.1.8 |
| Type: | Bug | Priority: | Major |
| Reporter: | Mike Bayer | Assignee: | Georg Richter |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
linux |
||
| Issue Links: |
|
||||||||
| Python Version: | 3.11 | ||||||||
| Description |
|
script below fails assertions as the UUID value is returned as a bytes when it's coming from RETURNING, even though cursor.description shows it as datatype 254 (STRING)
output shows correct behavior for SELECT, incorrect for INSERT...RETURNING
|
| Comments |
| Comment by Georg Richter [ 2023-10-04 ] |
|
Instead of checking (field->flags & BINARY_FLAG) we need to check the character set, if it's binary (=63), PyBytes will be returned. This will be fixed with implementation of |
| Comment by Georg Richter [ 2023-10-11 ] |
|
Fixed together with implementation of |