Subject: | An upcoming release of DBIx::Class 0.082900 will break this module |
The populate section in t/20-dbic.t relies on a dubious behavior within DBIC that has been fixed as of https://github.com/dbsrgits/dbix-class/commit/ddcc02d14d0. The issues can be best illustrated with a simple example:
~/devel/dbic$ perl -I lib -I t/lib -MDBICTest -e '
my $s = DBICTest->init_schema;
$s->exception_action(sub {
Carp::cluck("\n\n\nI got called with $_[0]");
die @_
});
eval { $s->populate("Artist", [{ artistid => 1} ]) }
'
Before ddcc02d14d0 this causes the exception_action handler to be invoked twice, but afterwards DBIC will only call it once for the final populate()-generated exception (see attachments).
This behavior has been long desired by various parties, is much more correct/consistent and is unlikely to change again - that is: exception_action will not revert to being called twice.
I am not including a patch, as I am not entirely sure which way you would like to go in fixing this. Please contact me for more info if a solution is not forthcoming.
Cheers, and sorry for the trouble.
Subject: | as_of_ddcc02d14d0 |
Message body not shown because it is not plain text.
Subject: | before_ddcc02d14d0 |
Message body not shown because it is not plain text.