On 02/02/2015 08:32 PM, Maddy, Noel wrote:
Luca,
IIRC, if you pass any value (even NULL) for the pk column, then it bypasses the
sequence.
Very well spotted, I didn't realize outright this is what was going on.
Luca - this is exactly the issue, it is valid (sometimes) to insert
NULLs into stuff marked as PK, so DBIC does allow it. I might consider a
warning in the future, but it won't ever become illegal.
_______________________________________________
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/dbix-class@lists.scsys.co.uk