Bug #109683 | MySqlCommand.LastInsertedId is incorrect if multiple rows are inserted | ||
---|---|---|---|
Submitted: | 18 Jan 2023 14:28 | Modified: | 6 Mar 2023 17:13 |
Reporter: | Bradley Grainger (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / NET | Severity: | S2 (Serious) |
Version: | 8.0.32 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[18 Jan 2023 14:28]
Bradley Grainger
[19 Jan 2023 3:11]
MySQL Verification Team
Hello Bradley, Thank you for the report and feedback. regards, Umesh
[6 Mar 2023 17:13]
Christine Cole
Posted by developer: Fixed as of the upcoming MySQL Connector/NET 8.0.33 release, and here's the proposed changelog entry from the documentation team: When Connector/NET inserted multiple rows using a single MySqlCommand, the MySqlCommand.LastInsertedId property returned the ID of the first row that was inserted rather than the last row. Thank you for the bug report.