Duplicate
Details
Details
Assignee
Unassigned
UnassignedReporter
Michael Born @ Ortus
Michael Born @ OrtusNew 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 14 November 2022 at 15:52
Updated 15 November 2022 at 14:04
Resolved 15 November 2022 at 14:04
This code will insert a query row with a
1
as the value for thelineData
column:testQry = queryNew( "lineData" ); row = { lineData : { 1 : 0 } }; // ROW 1 queryAddRow( testQry, row ); // inserts a "1" integer writeDump( testQry ); // ROW 2 queryAddRow( testQry, 1 ); testQry[ "lineData" ][2] = row[ "lineData" ]; // inserts a struct writeDump( testQry );
On ACF2016, ACF2018, and ACF2021 this code inserts a full struct.
See gist on TryCF:
https://trycf.com/scratch-pad/gist/efa47a1225207f53dbbfa863a1eb2803
Attached screenshots of result queries.