[cfaussie] Re: Query Parameter List in the Error Structure

2007-02-20 Thread Charlie Arehart
What version of CF are you using? In 7, there is the new RESULT attribute allowing you to name a variable which is a structure, and one of its keys is SQL and another is sqlparameters: CFQUERY NAME=demoq DATASOURCE=cfdocexamples result=test select * from employees where lastname =

[cfaussie] Re: Query Parameter List in the Error Structure

2007-02-20 Thread Charles Condon
The [Unknown Type] can normally be fixed with this hotfix http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=1a9c83c -Original Message- From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Scott Thornton Sent: Wednesday, 21 February 2007 12:08 PM To:

[cfaussie] Re: Query Parameter List in the Error Structure

2007-02-20 Thread Charlie Arehart
OK, I've done a little digging and this works in CFMX 6 and 7: CFQUERY NAME=demoq DATASOURCE=cfdocexamples select * from employees where lastname = cfqueryparam value=smith cfsqltype=CF_SQL_VARCHAR /CFQUERY cfdump var=#demoq# cfset factory = createobject(java,