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
_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[EMAIL PROTECTED]