[Dbix-class] bug with find_or_new and update_or_insert,
for postgres DB
Erik Colson
eco at ecocode.net
Tue Jan 8 07:31:59 GMT 2008
Erik Colson wrote:
> does this mean it is possible to do such a thing :
>
> $newrecord = $rs->new({id=>DEFAULT}) ;
>
> and then
>
> $newrecord->insert ;
>
> would autoincrement id if id is defined as a primary key autoincrement ?
>
Hate replying to myself ...
but this seems to work with sqlite3
$newrecord = $rs->new({}) ;
$newrecord->insert ;
would this work for all database backends available in DBIx::Class ?
--
Erik Colson
http://www.ecocode.net
More information about the DBIx-Class
mailing list