The following recommended in Allaire's Best Practices article in the URL
below confuses me:
<cfquery name="variables.qUser" datasource="#request.dsn#">
SELECT FirstName, LastName
FROM Users
WHERE UserID = #request.UserID#
</cfquery>
<cflock scope="application" timeout="2" type="exclusive">
<cfset application.qUser = variables.qUser>
</cflock>
Note that this means application.qUser only POINTS to variables.qUser
(Was this intended by Allaire? A typo? If it only points, what's the
point? Pardon the pun....)
As contrasted with, for example:
<CFSET application.qUser = Duplicate(variables.qUser)>
which does not only POINT.
best, paul
PS> I posted a related question to cf-talk about the behavior of the above
in the case of a cached query with dynamic parameters. Any answers?
At 02:34 PM 9/27/00 +0100, you wrote:
> > I just read through the allaire article on locking shared scope variables
> > http://www.allaire.com/handlers/index.cfm?ID=17318 and I noticed that
>there
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.