C:DBI fails to update DB?by zigdon (Deacon)
|on Sep 28, 2004 at 13:28 UTC||Need Help??|
zigdon has asked for the wisdom of the Perl Monks concerning the following question:
This is probably something really silly, but a quick ping on the ChatterBox didn't show up anything obvious.
I'm trying to use C:DBI to update a field in the database. Here's the outline of the code:
Now, the code runs, and prints the new value properly. But looking in the database, the new value doesn't get saved.
The definitions: (each in it's own file)
Other updates (elsewhere in the code, in other pages), do work properly. I'm wondering if this has something to do with the scoping of $obj? Update: Not sure if this is related, but the 'status' column is an 'enum'. The values I'm trying to assign are valid.
Any hints or suggestions would be very welcome!