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

_______________________________________________
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]

Reply via email to