[Opensource] DBObject.find() returning bogus information.

Michael Rimov rimovm at centercomp.com
Mon Nov 11 20:17:28 PST 2002


At 08:43 PM 11/11/2002 -0300, you wrote:
>I have been facing some strange errors using expresso 5.0 on linux with 
>j2sdk 1.4.1, both with MySQL and PostgreSQL
>
>I have a DBObject with a unique field named "code", I do a 
>setField("code",code); then a find(), wich returns true, but refers to the 
>wrong instance of the DBOject in question (wich has a diferent "code").
>
>Has anybody seen this error?

Marcelo,

Give 5.0.1 a try.  I fixed a couple of bugs related to retrieve(), etc that 
may have a side impact on find.

If that doesn't do it, the other way you can deal with it is turn on 
debugging for the sql statements getting executed against the 
database.  You'll find a comment about it in the expressoLogging.xml 
file.  That way you can actually see if there's something amiss in the SQL 
getting executed to the database.  Then let us know what seems to be the 
result of your findings and we'll see if we can track it down.

HTH!
                                         -Mike





More information about the Opensource mailing list