| Bug #19374 | Make LastInsertId accessible | ||
|---|---|---|---|
| Submitted: | 26 Apr 2006 14:23 | Modified: | 5 Nov 2007 21:44 | 
| Reporter: | Thomas Krüger | Email Updates: | |
| Status: | Won't fix | Impact on me: | |
| Category: | Connector / NET | Severity: | S4 (Feature request) | 
| Version: | 1.0.7 | OS: | Windows (Win XP Prof) | 
| Assigned to: | CPU Architecture: | Any | |
   [5 Nov 2007 21:44]
   Reggie Burnett        
  Won't fix this in 1.0 code base but it has been implemented in our 5.x code base.


Description: Please make the id of the last inserted row accessible. When using auto inc columns, there is no other way to access the id in a concurrency-safe fashion. I think it perfectly fits as long MySqlDataReader.LastInsertId { get } . How to repeat: There has been preliminary code for LastInsertId which was commented out. Why? No explanation has been given. Suggested fix: Allow MySqlDataReader to have a property long LastInsertId { get } returning the correct value in a conocurreny-safe fashion.