I thought there was a bug with Stored Procedure support in Castor, same
holds
true for direct SQL queries. The bug is with creation of OIDs...if you look
carefully
at MultipleRSCallQuery...and SQLEngine (which supports SQL) you will see the
difference....
MultipleRSCallQuery assumes the Id always to be complex, though in your case
it appears
to be simple (based on 1 field only). 

I had submitted the change long time ago but got lost...if I find it will
forward it again....
but may be towards the end of the day..

sudhir

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 10, 2001 3:11 AM
To: [EMAIL PROTECTED]
Subject: [castor-dev] Stored Procedure Help



I am using a stored procedure to retrieve some data from SQL Server 7.0
The query executes OK, but when I call the hasMore() method on the returned
recordset I get the exception

org.exolab.castor.jdo.PersistenceException: Complex size mismatched!

The mapping file for the class has twelve fields as does the recordset
returned from the procedure.
I can't figure out what I am doing wrong or what the error means.

Can someone please help?

B.Y.

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to