why won't zero work here?
Running this loop for my query through ColdFusion will not yield any results for the value of 0 (zero), however the values 1 and 2 work as expected. When I run this same query (minus the CF code, just using the numbers 0, 1, and 2) through the database directly I get my expected results for 0. Anyone know what I need to do to get results for 0?
<cfloop list="0,1,2" delimiters="," index="i">
<cfquery name="jobIdList" datasource="#request.DSN#">
select distinct jobid
from jobstatus
where jobstatus=<cfqueryparam value="#i#" cfsqltype="cf_sql_integer">
order by jobid
</cfquery>
</cfloop>
Thanks in advance,
Rich
