On 5/24/06, Cees Hek <[EMAIL PROTECTED]> wrote:
I noticed that when I try to set a boolean value to 0 it successfully
sets the value to false, but then fails to save the changes to the DB
when I call $object->save.  This doesn't happen when you set the value
to 'f' or 'n' or any other value that has a 'defined' value.

The attached simple patch fixes the problem.  I have attached a second
alternate patch which fixes the exact same problem in a slightly
different way, which I think is a bit cleaner (there seemed to be some
duplication of effort in there).

Thanks.  I applied the first patch.  The reason that piece of code
does things the way it does them is to avoid the extra checks
(especially the regex matches) if the boolean value is false.  The
first patch is how I would have fixed it.  (I also added the same sort
of fix in the "set" boolean method type, since the problem was there
too.)  Thanks :)

-John


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid7521&bid$8729&dat1642
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to