Bug #95986 | "Incorrect integer value" using prepared statement with MySqlDbType.Int24 | ||
---|---|---|---|
Submitted: | 25 Jun 2019 22:59 | Modified: | 29 Aug 2022 14:52 |
Reporter: | Bradley Grainger (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / NET | Severity: | S3 (Non-critical) |
Version: | 8.0.16 | OS: | Windows (10) |
Assigned to: | CPU Architecture: | Other (x64) |
[25 Jun 2019 22:59]
Bradley Grainger
[25 Jun 2019 23:05]
Bradley Grainger
Suggested fix: MySqlDbType.Int24 should be treated similarly to MySqlDbType.UInt24 in MySqlParameter.GetPSType(). https://github.com/mysql/mysql-connector-net/blob/f2a0f56edf4a12b739d19fbcc2b1099929eb464c...
[26 Jun 2019 8:48]
MySQL Verification Team
Hello Bradley, Thank you for the report and test case. regards, Umesh
[29 Aug 2022 14:52]
Christine Cole
Posted by developer: Fixed as of the upcoming MySQL Connector/NET 8.0.31 release, and here's the proposed changelog entry from the documentation team: An error was emitted after passing in MySqlParameter.MySqlDbType set with type MySqlDbType.Int24 to command.ExecuteNonQuery() using a prepared statement. Thank you for the bug report.