in reply to Class::DBI find_or_create method inserts record but $obj->id is undef
You should check out Class::DBI::FromCGI, which does this for you. However, if you just delete the id field from your CGI object after the call to find_or_create, your current code should work.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Class::DBI find_or_create method inserts record but $obj->id is undef
by jerrygarciuh (Curate) on Jan 24, 2004 at 00:17 UTC | |
by runrig (Abbot) on Jan 24, 2004 at 00:24 UTC | |
by jerrygarciuh (Curate) on Jan 24, 2004 at 00:37 UTC | |
by perrin (Chancellor) on Jan 24, 2004 at 02:00 UTC | |
by jerrygarciuh (Curate) on Jan 24, 2004 at 03:51 UTC |
In Section
Seekers of Perl Wisdom