On Tue, Mar 15, 2011 at 10:26 AM, Dain Anderson <[email protected]>wrote:
> > I may have missed conversation of this over the years, so I figured I would > ask. > > What's the current "take" on this (old?) practice? If I have a CFC function > that deletes a record, and that CFC contains a single query, do you find it > necessary to scope that query with a name? > > <cffunction name="DeleteMe"> > <cfset var q = "" /> > <cfquery datasource="#variables.ds#" name="q"> > delete mah stuff... > </cfquery> > </cffunction> > > Only when I use OUTPUT statement insert into (bla) output INSERTED.ID values (Bla) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:343037 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

