Bug #99091 | Unexpected return value getting integer for TINYINT(1) column | ||
---|---|---|---|
Submitted: | 27 Mar 2020 2:29 | Modified: | 28 Nov 2022 18:54 |
Reporter: | Bradley Grainger (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / NET | Severity: | S3 (Non-critical) |
Version: | 8.0.19 | OS: | Windows (10) |
Assigned to: | CPU Architecture: | Other (x64) |
[27 Mar 2020 2:29]
Bradley Grainger
[27 Mar 2020 4:46]
MySQL Verification Team
Hello Bradley, Thank you for the report and test case. regards, Umesh
[22 Sep 2022 20:18]
Omar Chavez
Posted by developer: Bug verified using Connector/Net version 8.0.30
[28 Nov 2022 18:54]
Christine Cole
Posted by developer: Fixed as of the upcoming MySQL Connector/NET 8.0.32 release, and here's the proposed changelog entry from the documentation team: Some methods of the MySqlDataReader class that should retrieve an integer value instead could return unexpected values. This behavior had multiple causes. First, the connector was not properly informed by the TreatTinyAsBoolean property that it should treat type TINYINT(1) as INT or BOOL. In addition, Connector/NET implemented the conversion to a different type inconsistently. Thank you for the bug report.