Muench ex pg715-18 works until add CURSOR to select; anyone know how?

I have an XSQL, modeled after the Muench book example on pg715-18, which uses xsql:ref-cursor-function to call a PL/SQL procedure which returns a ref cursor.
It works very well UNTIL I try to use CURSOR in the SELECT statement built and ran in the PL/SQL after which I get an error like
ORA-00600: internal error code, arguments: [kokbcrwo1], [2], [3], [], [], [], [], [] ORA-06512: at "JSDB.CATEGORYMAPSEARCH", line 262 ORA-06512: at line 1
The database is Oracle 9.2.0 and I am using the XDK/XSQL that was installed with the database.
Does anyone have an example which extends the Muench example to use CURSOR in the SELECT or which uses the tool delivered with 9.2.0 (DBMS_XMLGEN, etc.) to achieve the equivalent of the Muench example which returns/produces nested XML?
Thanks
R.Parr
TemporalArts

I found I get this error whenever the outermost select statement contains DISTINCT. Further I discovered a similar (albeit slightly different error) if the outermost select has GROUP BY.
I got worked around the problem for my current use but would like to know if this is, in fact, a restriction on the use of CURSOR in XSQL and if it is still a restriction in vers 10 of the XDK?
Thanks
R.Parr
Temporal Arts

Similar Messages

Maybe you are looking for