> I am using try/catch around a cfquery, and when I use #cfcatch.SQl# within > cfcatch, I get an error saying sql is undefined > in cfcatch. The same happens with #cfcatch.where#. Everything is fine with > #cfcatch.detail#, #cfcatch.message#. > > I have been working with #cfcatch.sql# and #cfcatch.where# with no issues > until today. Can any one let me know what could be > the issue
Those variables will only be available if the thrown exception is of TYPE="DATABASE". So check your CFCATCH.TYPE to see if that's what you have. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333200 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm