Scott Steinbeck
05/18/2022, 5:00 PMinsert into example(arrColumn) values('{1, 2, 3}');
Notice the Curly braces instead of [1,2,3]
Currently the only way i can do an insert with cfqueryparam is to serialize the array and replace the [] with {}
There is a CF_SQL_ARRAY cfsqltype, however it does not work complaining that even when passing an actual CF array in or a string, CF complains that it is not an array
Is there any better way of doing this?Myka Forrest
05/18/2022, 5:07 PMARRAY [ '(408)-589-5846','(408)-589-5555' ]
Does that work?Scott Steinbeck
05/18/2022, 5:09 PM{1,2,3} notationTim
05/18/2022, 5:43 PM{<cfqueryparam cfsqltype="integer" list="true" value=ArrayToList(array)>} ?Scott Steinbeck
05/18/2022, 5:45 PMTim
05/18/2022, 5:45 PMIN ( a list ) . And the syntax looks similar, so it might work for { a list } as well.