Mark Zuchowski
Member
I am getting an error (ORA-01001:invalid cursor) when I have a where clause on a SQL statement that has a cursor expression when I try to access the cursor from the cursor expression by clicking on the "..." in the result cell for the cursor. If I remove the where clause I do not get the error. I am using the Oracle 10.2.0.2 Oracle client to access an Oracle database on the same version. I do not get the error if I use SQL*Plus or Toad. Thoughts?
Receive the Error:
select o.fsr_oper_key
,o.oper_nm
,cursor(select *
from fsetl.fsr_cntct c
where o.fsr_oper_key = c.fsr_oper_key) as cntct_cur
from fsetl.fsr_oper o
where o.fsr_oper_key = 279314;
Do not Receive the Error:
select o.fsr_oper_key
,o.oper_nm
,cursor(select *
from fsetl.fsr_cntct c
where o.fsr_oper_key = c.fsr_oper_key) as cntct_cur
from fsetl.fsr_oper o;
Receive the Error:
select o.fsr_oper_key
,o.oper_nm
,cursor(select *
from fsetl.fsr_cntct c
where o.fsr_oper_key = c.fsr_oper_key) as cntct_cur
from fsetl.fsr_oper o
where o.fsr_oper_key = 279314;
Do not Receive the Error:
select o.fsr_oper_key
,o.oper_nm
,cursor(select *
from fsetl.fsr_cntct c
where o.fsr_oper_key = c.fsr_oper_key) as cntct_cur
from fsetl.fsr_oper o;