Answered
Forming a SQL IN expression
If I use a hard-coded set of string values in an IN
expression, the query returns the expected data.
If I then replace the hard-coded expression with an equivalent CF variable embedded in a cfqueryparam tag, the query executes but returns no records. A cfdump of the CF variable indicates it is exactly the correct pair of single-quoted values that were previously hard-coded.
A cfdump of the query result set shows the IN expression is a single row array containing 'a','b'
Any ideas what might be wrong?
Jim
If I then replace the hard-coded expression with an equivalent CF variable embedded in a cfqueryparam tag, the query executes but returns no records. A cfdump of the CF variable indicates it is exactly the correct pair of single-quoted values that were previously hard-coded.
A cfdump of the query result set shows the IN expression is a single row array containing 'a','b'
Any ideas what might be wrong?
Jim
