No output when using CFTHREAD for parallel queries
Hi,
I want to execute some queries at the same time using cfthread.
But when I join the threads and try to output the query results I get following error:
"The value of the attribute query, which is currently q_emp, is invalid."
Here is my sample code:
<cfthread name="t1" >
<cfquery name="q_emp" datasource="test" >
SELECT empno,ename
FROM emp
</cfquery>
</cfthread>
<cfthread name="t2" >
<cfquery name="q_dept" datasource="test">
SELECT deptno, name
FROM dept
</cfquery>
</cfthread>
<cfthread action="join" name="t1,t2" />
<cfoutput>
<cfloop query="q_emp">
#empno# #ename# </br>
</cfloop>
<cfloop query="q_dept">
#deptno# #name#</br>
</cfloop>
</cfoutput>
What's wrong in my code?
I'm using ColdFusion 9 Standard Edition and Oracle 11g.
regards Claudia
