No, that's still not thread safe.  What you need is this:

<cfset var myQuery = "" />
<cfquery ... name="myQuery">
...

The query object will overwrite the string, but still use the
locally-declared 'myQuery' variable name.

cheers,
barneyb

On 6/23/05, Salvatore Fusto <[EMAIL PROTECTED]> wrote:
> Hi,
> do you mean writing:
> 
> <cfset var q_name="my query" />
> <cfquery name="#q_name#" ...>
> ..
> instead of a simple
> <cfquery name="q_query" ../>
> ?
> regards
> salvatore

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]


Reply via email to