[Opensource] bug? in delete in dbobject
larry hamel
expresso at codeguild.com
Wed Oct 16 11:52:10 PDT 2002
hmm, I think you're right.
we have deleteAll() for the general case, where non-ID fields can be used.
I'm curious about Mike R.'s opinion...
larry
At 12:12 AM 10/16/2002, you wrote:
>nobody answer this mail.
>
>sure i am the only person that have this problem?
>
>regards
>David
>
>
>>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/
>>_______________________________________________
>>Opensource mailing list
>>Opensource at jcorporate.com
>>http://mail.jcorporate.com/mailman/listinfo/opensource
>>Archives: http://mail.jcorporate.com/pipermail/opensource/
>
>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
>------------------------------------------------
>
>_______________________________________________________________
>Yahoo! Messenger
>Nueva versión: Webcam, voz, y mucho más ¡Gratis! Descárgalo ya desde http://messenger.yahoo.es
>_______________________________________________
>Opensource mailing list
>Opensource at jcorporate.com
>http://mail.jcorporate.com/mailman/listinfo/opensource
>Archives: http://mail.jcorporate.com/pipermail/opensource/
More information about the Opensource
mailing list