Title:
Please consider normalizing the result key for the identity value of a newly inserted row
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Adam Tuttle / Adam Tuttle (Adam Tuttle)
Created: 01/25/2013
Components: Database
Versions: 10.0
Failure Type: Enhancement Request
Found In Build/Fixed In Build: Final /
Priority/Frequency: Major / All users will encounter
Locale/System: English / Platforms All
Vote Count: 1
Currently, when you insert a record and want the inserted ID, you have to know which database platform is in use so that you can get the id value. See the docs here: http://cfdocs.org/cfquery
reuslt.INDENTITYCOL -- sql server only
result.ROWID -- oracle only
result.SYB_IDENTITY -- sybase only
result.SERIAL_COL -- informix only
result.GENERATED_KEY -- mysql only
I can't think of a valid reason that these should not be normalized into one database agnostic result key.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3490074
External Customer Info:
External Company:
External Customer Name: Adam.Tuttle
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: