As a follow-up to my original post, the query I am running is:

SELECT x FROM com.webmiles.jdo.PartnerContact x WHERE member.memberId = $1.

I ran it once with <cache-type type="none"/> in my mapping.xml and 1 object
was returned.  I removed the <cache-type> tag and 2 objects (the correct
number) were returned.

I spent an hour or two looking at the source code for anything that seemed
suspicious, but did not find anything that jumped out at me.  However, I am
not a contributor and don't know the code base very well, so perhaps someone
with more expertise in this area might be better equipped to uncover the
precise nature of the bug.

Thank you,

Sean Rohead

-----Original Message-----
From: Sean Rohead [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 27, 2001 11:20 AM
To: [EMAIL PROTECTED]
Subject: [castor-dev] bug with <cache-type type="none"/>


I have discovered a bug in castor whereby a query may not return all
relevant rows in the database when <cache-type type="none"/> is specified in
the
mapping file.  I changed nothing in my application or database other than
removing the <cache-type> tag and the query starting returning the correct
number of rows.  Has anyone else encountered this behaviour?  I'm worried
about introducing other side-effects into my program by not disabling
caching, but the docs don't really give any clues as to what might happen
now that I've removed this tag.  Can anyone advise?

Thank you,

Sean Rohead

----------------------------------------------------------- 
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