Yes, your cfquery name should be locally scoped via "cfset var".

/Cody

Brian Peddle wrote:
I am pretty positive this needs to be scoped but want to verify

Example CFC to return query results:

<cffunction name="getSearchOptions" access="public" output="no"
returntype="query">

<cfset var resultset = "" />

                <cfquery name="resultset" >
                Query here
                </cfquery>
                
                <cfreturn resultset />
        </cffunction>


The resultset should be scoped right?



----------------------------------------------------------
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]







----------------------------------------------------------
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]


Reply via email to