Ok, very weird. I stripped the code down to the basics to see
if I can reproduce the problem. If I do a simple query against the
original table I can reproduce the problem. If I change the name of
the table to another table, it does work. The code is below. The
database is SQL server. Obviously the issue seems to be something
in the database. However:
1. The code worked fine in CF5
2. In the code below I am not referencing any fields in the
table
3. Both tables are rturning one record as per the MAXROWS
setting
The table that doesn't work is named offerings2
The table that does work is named units
I've uploded to very simple pages with the code below and
referencing both tables:
http://darkeffigy.com/test_offerings2.cfm
http://darkeffigy.com/test_units.cfm
--------BEGIN CODE--------
<CFQUERY NAME="getdata"
DATASOURCE="#trim(user_datasource)#" USERNAME="#trim(dsn_uname)#"
PASSWORD="#trim(dsn_pword)#" MAXROWS="1">
select * from offerings2
</CFQUERY>
<CFIF #isdefined("form.the_form_field")#>
<HR>ISDEFINED OUTSIDE THE CFOUTPUT<HR>
</CFIF>
<CFOUTPUT QUERY="getdata">
<HR>REGULAR ROW OF OUTPUT<HR>
<CFIF #isdefined("form.the_form_field")#>
<HR>ISDEFINED INSIDE THE CFOUTPUT<HR>
</CFIF>
</CFOUTPUT>
<FORM ACTION="test_offerings2.cfm" NAME="foreform"
METHOD="POST" ENCTYPE="multipart/form-data">
<INPUT TYPE="text" NAME="the_form_field"
VALUE="ABCDEFG">
<INPUT TYPE="submit">
</FORM>
--------END CODE--------
Thank you