From: Dagfinn Ilmari Mannsåker Date: Mon, 3 Feb 2020 11:33:02 +0000 (+0000) Subject: Add a missed fallback to the package-global $tb X-Git-Tag: v1.87~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e026e02a8dd0f9d5b247c55c51d3db63539991e3;p=dbsrgits%2FSQL-Abstract.git Add a missed fallback to the package-global $tb --- diff --git a/lib/SQL/Abstract/Test.pm b/lib/SQL/Abstract/Test.pm index d44ef53..bb0fcf7 100644 --- a/lib/SQL/Abstract/Test.pm +++ b/lib/SQL/Abstract/Test.pm @@ -135,7 +135,7 @@ sub _sql_differ_diag { sub _bind_differ_diag { my ($bind_ref1, $bind_ref2) = @_; - my $tb = __PACKAGE__->builder; + my $tb = $tb || __PACKAGE__->builder; $tb->${\($tb->in_todo ? 'note' : 'diag')} ( "BIND values differ " . dumper({ got => $bind_ref1, want => $bind_ref2 }) );