Posted this yesterday, but it didn't seem to go through...

I became a convert to cfqueryparam, thanks to this list, about 2 months ago.  
Since then, I've wondered about this kind of statement (shortened here):

<cfquery>

SELECT username
  FROM user
 WHERE lastname = <cfqueryparam type="varchar" value="#mylastname#">
 <cfif len(myfirstname)>
  AND <cfqueryparam type="varchar" value="#myfirstname#">
 </cfif>

</cfquery>

Does the presence of the <cfif> block inside the SQL negate the speed benefits 
I would get from using cfqueryparam?  I'm kind of hoping not, but guessing yes.

Thanks in advance for the advice,
Ben Mueller 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291968
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to