I have the next simple query :
SELECT code, description
FROM table
WHERE code in ( #list# )
The list is created from an XML feed with listAppend():
<cfset list= listAppend(list, data.data1[i].xmltext )>
<cfset qualifiedList1 = ListQualify(list, "'")>
With listQualify I wrap every element from the list in quotation marks for the query. The problem is that when I run the query, I don't get any results back.
If I dump the list the query look like this :
SELECT code, description
FROM table
WHERE code in ('''BG/NN1'',''BG/NL2'',''BG/NN3'',''BG/NN4'',''BG/NN5''')
Any ideas on how can fix this problem?
Update 1: I've fixed the problem.The problem was with ListQualify(list, "'")> Because list Qualify wraps every element in quotes the list attribute from cfqueryparam didn't recognized any of the values.Thank you!