Hello John,

I think I hited a bug in RDBO, in

        $object->save( cascade => 1, changes_only => 1)

for objects implied in a relationship one-to-one.


When adding a new sub-object to an existing main
object and that will try to save self in db, if none of
his fields are modified, the generated sql is incomplete and wrong:

        "UPDATE table SET

        where id = $1"


I've attached a script for SQLite, but the same behaviour is for
Postgresql.


Best regards,
 Lucian Dragus

Attachment: save-cascade.pl
Description: Binary data

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to