Details
Details
Assignee
Michael Offner
Michael OffnerReporter
Gert Franz
Gert FranzNew Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Affects versions
Priority
Created 1 February 2016 at 10:21
Updated 4 October 2022 at 10:48
Introduce a new function queryInsertRow(qry:query to insert rows into, numberOrData, position) that allows inserting a record into a CFML query.
NumberOrData can be:
number: number of empty records to insert
struct: one record containing field:value pairs
arrayOfStructs: many records containing field:value pairs
Position: numeric, the number of the record before which the new records should be inserted. If the number is > recordCount, the records will be appended (similar to regular queryAddRow)
OR alternatively —
extend the current implementation of queryAddRow() with an additional last Parameter that indicates the position(s), the record(s) should be inserted.