X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fsearch%2Fsubquery.t;h=8b785e4f0cff7de1fe0795639a0cfacd1df16843;hb=eef9b4844e1e297bb1480583c21add02d2e8232e;hp=87195fdc005562ee04b9327c54adb7bb74b1a39c;hpb=a5a7bb733a940db710b7408508374833683a2e79;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/search/subquery.t b/t/search/subquery.t index 87195fd..8b785e4 100644 --- a/t/search/subquery.t +++ b/t/search/subquery.t @@ -1,11 +1,14 @@ +BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) } + use strict; use warnings; use Test::More; -use lib qw(t/lib); + use DBICTest ':DiffSQL'; use DBIx::Class::SQLMaker::LimitDialects; +use DBIx::Class::_Util 'sigwarn_silencer'; my $ROWS = DBIx::Class::SQLMaker::LimitDialects->__rows_bindtype; @@ -164,6 +167,8 @@ my @tests = ( for my $i (0 .. $#tests) { my $t = $tests[$i]; for my $p (1, 2) { # repeat everything twice, make sure we do not clobber search arguments + local $SIG{__WARN__} = sigwarn_silencer( qr/\Q{from} structures with conditions not conforming to the SQL::Abstract syntax are deprecated/ ); + is_same_sql_bind ( $t->{rs}->search ($t->{search}, $t->{attrs})->as_query, $t->{sqlbind},