> Much simpler (but the same) meaning, is just that you
> should NEVER have hashes inside CFQUERY tags, unless
> they are also inside CFQUERYPARAM tags.
I beg to differ:
<cfparam name="attributes.join" default="left">
<cfquery name="getStuff" ...>
select b.*, j.columns
from basetable b
#attributes.join# jointable j on (j.x = b.x)
</cfquery>
I don't use this syntax because it's insecure... This is simplified to
make the example... The point being that there are cases in which a
non-queryparamed variable is viable as part of a sql statement when
the content of the variable constitutes part of the sql syntax which
is not bind-able.
s. isaac dealey 954.522.6080
new epoch : isn't it time for a change?
add features without fixtures with
the onTap open source framework
http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:210623
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