Hi,
I might have missed something important previously...
Let me explain the setup:
* I have a cfc in the application scope
* that cfc performs a db query once, and stores the result in the cfc
VARIABLES scope
* the variables scoped query variable is only written once for the life
of the application
* now I set up a simple template to get that query, from that cfc
(through a getter), should I then always duplicate() the query, or
should I pass it by reference?
I am asking, since I am noticing some weird stuff, which goes away when
I duplicate it... I had the impression that things were ok as long as
one didn't write to the variable in question, but it seems like the
cursor for a cfoutput/cfloop over the query is also connected to the
application-wide single reference of the variable...
(seen this both in CFMX 6.1 and BD 6.2.1)
/Hugo
--
Hugo Ahlenius
-------------------------------------------------------------
Hugo Ahlenius E-Mail: [EMAIL PROTECTED]
Project Officer Phone: +46 8 412 1427
UNEP GRID-Arendal Fax: +46 8 723 0348
Stockholm Office Mobile: +46 733 467111
WWW: http://www.grida.no
Skype: callto:fraxxinus
-------------------------------------------------------------
###########################################
This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.f-secure.com/
----------------------------------------------------------
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).
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]