On 7/11/06, Tony Lincoln <[EMAIL PROTECTED]> wrote: > Well, I had changed the id field's case in update_or_create because > PK::Auto wouldn't increment it when it was lowercased, and I had sort of
Just to keep our language clear: PK::Auto doesn't increment anything. Your database vendor handles all the autoincrementing in its normal everyday fashion, using triggers or what-have-you. The DBIx::Class "PK::Auto" component's purpose in life is to fetch the newly incremented and inserted value from the database library/interface after the fact, and copy it correctly into the Perl object representation of the new row. -- Brandon _______________________________________________ List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class Wiki: http://dbix-class.shadowcatsystems.co.uk/ IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/ Searchable Archive: http://www.mail-archive.com/[email protected]/
