[Opensource] bug? in delete in dbobject

David Gil dgil at indaba.es
Mon Oct 14 02:25:12 PDT 2002


hi all,

I think i have found a bug when i use delete of dbobject (at less if
works different of expresso 4.02).

The problem is that when you try to delete a record using
dbobject.delete(), the query that dbobject send to the db has
a where clause with all the fields that have been filled in the
dbobject. This can cause problems if you have changed something
in the dbobject.
When i delete and object i think that only the key fields must be
used, at least this works in this way in 4.02, so migrating is not
trivial.
Is a bug? or is ok? and if so, what i must do, only write the key
fields in a dbobject... (hard work)...

if it is a bug, the solution is call
buildWhereClauseBuffer with false in useAllFields...

regards,
David


David Gil Sánchez
------------------------------------------------
INDABA Consultores <Internet y Bases de Datos>
Centro de empresas Oarsoaldea (Edificio Mamut)
Carretera Astigarraga, 2 - 2º
Oiartzun (Guipúzcoa)
943 261121
http://www.indaba.es
------------------------------------------------

_______________________________________________________________
Copa del Mundo de la FIFA 2002
El único lugar de Internet con vídeos de los 64 partidos. 
¡Apúntante ya! en http://fifaworldcup.yahoo.com/fc/es/



More information about the Opensource mailing list