If your query fails, the component doing the query should throw an exception, which is handled by the calling code. It shouldn't pass back a valid value unless the operation was successful (or at least successful enough). That's the point of exceptions, after all.
Cheers, barneyb > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Bryan F. Hogan > Sent: Tuesday, July 20, 2004 12:56 PM > To: [EMAIL PROTECTED] > Subject: Re: [CFCDev] Making Persistant CFCs thread safe > > It may possibly add a little overhead, however I haven't seen any > noticeable performance hit. > > Well one if your query fails and your returning the query > var, than your > CFC will fail and the controller will not get called. When > varing them > this way and the query fails my dispatch would handle the > undefined values. > > Raymond Camden wrote: > > > Why do you create a blank query? I used to this as well, > but it seems like > > doing > > > > <cfset var x = queryNew("")> > > > > would be much slower than > > > > <cfset var x = ""> > > > > Well, maybe _much_ slower isn't exactly right, but it is > extra work that is > > not necessary. > ---------------------------------------------------------- > You are subscribed to cfcdev. To unsubscribe, send an email > to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' > in the message of the email. > > CFCDev is run by CFCZone (www.cfczone.org) and supported > by Mindtool, Corporation (www.mindtool.com). > > An archive of the CFCDev list is available at > www.mail-archive.com/[EMAIL PROTECTED] > ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com). An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]
