Re: Function and query name overwrite

2004-11-12 Thread Thomas Chiverton
On Thursday 11 Nov 2004 17:51 pm, Michael Dinowitz wrote: > Very interesting. I'd never have thought of doing a var set before the > CFQUERY. It would show up in my head as an unnecessary operation. Yeah, I know. When it was discovered you needed to do this (for thread safety) it was suggested t

RE: Function and query name overwrite

2004-11-11 Thread Ian Skinner
Just had a long talk with Sean about that. Not do-able (other than it looking ugly). Doing an initial CFSET with the var key word is the way to go. Especially since all the var declarations must be at the beginning of the function. -- Ian Skinner Web Programmer BloodSource www.Bloo

RE: Function and query name overwrite

2004-11-11 Thread Michael Dinowitz
It's one of those rare issues where you spend a few minutes to a few days trying to find out why a value is being set one way when it's supposed to be another. With small CFCs it should not be a problem, but once you get into large ones with internal function calls, you're getting into dangerous te

RE: Function and query name overwrite

2004-11-11 Thread Michael Dinowitz
t;> so I thought maybe the other would work > as well. Anyone have time to test? > > John > > -Original Message- > From: Michael Dinowitz [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 11, 2004 12:51 PM > To: CF-Talk > Subject: RE: Function and query name o

Re: Function and query name overwrite

2004-11-11 Thread Dave Carabetta
On Thu, 11 Nov 2004 14:33:46 -0500, Burns, John D <[EMAIL PROTECTED]> wrote: > Would it be possible to do ? It looks > funny and I doubt it would work, but I know you can do name="application.getEmployees"> so I thought maybe the other would work > as well. Anyone have time to test? > It won'

RE: Function and query name overwrite

2004-11-11 Thread Burns, John D
PM To: CF-Talk Subject: RE: Function and query name overwrite Very interesting. I'd never have thought of doing a var set before the CFQUERY. It would show up in my head as an unnecessary operation. I think MM should add in an attribute to all tags that return data to make the data location spe

RE: Function and query name overwrite

2004-11-11 Thread Michael Dinowitz
Very interesting. I'd never have thought of doing a var set before the CFQUERY. It would show up in my head as an unnecessary operation. I think MM should add in an attribute to all tags that return data to make the data location specific. > If you scope your query as local to the function, the

Re: Function and query name overwrite

2004-11-11 Thread Joe Rinehart
Hey Mike, If you scope your query as local to the function, the conflict will do away. It's BP for thread safety, etc.: Instead of: ... Do: ... -joe On Thu, 11 Nov 2004 12:28:35 -0500, Michael Dinowitz <[EMAIL PROTECTED]> wrote: > This is not a question, just something I ran