[Dbix-class] bug with find_or_new and update_or_insert,
for postgres DB
Erik Colson
eco at ecocode.net
Tue Jan 8 07:32:18 GMT 2008
Jess Robinson wrote:
> There may be a DB where submitting NULL to a NOT NULL field which is
> auto-inc does the required thing, but it's not sane, IMO.
>
> Most prefer either "don't supply it" or want "DEFAULT" instead which is
> saner and iirc standard.
>
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 ?
--
Erik Colson
http://www.ecocode.net
More information about the DBIx-Class
mailing list