On Tue, 8 Jan 2008, Erik Colson wrote:
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}) ;
No, that would be id => \'DEFAULT', otherwise it will think it's a string,
which it isnt.
and then
$newrecord->insert ;
would autoincrement id if id is defined as a primary key autoincrement ?
Jess
_______________________________________________
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]