It doesn't matter - CFML is not like Java (where you must pre-define variables 
with strict types). In CFML, variables can change types at any time.

If you're just var scoping a cfquery variable, it doesn't matter what you use. 
(I would guess using QueryNew might be ever so slightly slower - but I doubt 
it's significant, and wouldn't be surprised if the JVM optimized it away 
anyhow.)


You can avoid the pointless debate by using:

    <cfquery name="local.myQuery" etc

If you're not on CF9/equivalent then you need a <cfset var local = StructNew() 
/> immediately after any arguments.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346488
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to