Thanks Dave, that's more or less what I am getting. But better than that,
the column data is appearing, just not in the right column.

I added a new column in the middle of the list in Enterprise Manager and
this has caused a shift of data and columns like this:

ID      Col1    Col2    Col3
1       col1    newcoldata      col2

I am using SELECT * and changing it to a listing of the columns(changing the
statement) has caused it to refresh. But going back to SELECT * still gets
the cached data.

I was hoping for a way to clear it by changing something in the page,
requesting the new page and then changing back the code to what I had
originally.

And no sooner had I typed the above this worked. I change the formatting of
the query, dropped it into three lines instead of one. Are statement really
cached in this manner? Adding a carriage return causes a recompile? Strange!

Thanks all.

Ade

-----Original Message-----
From: Dave Watts [mailto:[EMAIL PROTECTED]
Sent: 25 March 2005 21:16
To: CF-Talk
Subject: RE: cfqueryparam caching data

I'm not sure it's the CFQUERYPARAM which is causing the problem.
Conceivably, you could have the same problem if you had a hardcoded value in
your SQL, if your datasource is configured to generate prepared statements,
and you might see the problem go away if you added a CFQUERYPARAM! If you
add a column, and use "SELECT *", and the prepared statement is cached on
the database server, your query often won't include the new column.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.8.1 - Release Date: 23/03/2005


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:200059
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to