Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

strange Oracle ODBC Driver behaviour

421522May 18 2004 — edited May 19 2004
It's strange, but it seems that Oracle ODBC doesn't support requests to stored procedures with UNION function.
I'm using following construction in stored proc:

open a for select * from
(
with rez1 as ( select ....... ),
rez2 as ( select ....... )
select * from rez1
union
select * from rez2
)

and when I call it from Excel I receive ORA-32036 (unsupported case for inlining of query name in WITH clause).
But if I start that proc from SQL Navigator then everything is fine, proc returns results (REF CURSOR)

And if I remove that UNION (together with "select * from rez2), request also works fine from Excel...

Is there some error in my proc or it's just a limitation of ODBC?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 16 2004
Added on May 18 2004
2 comments
241 views