X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F47bind_attribute.t;h=3bc1935d9be753e5618b2bec68facb67af945250;hb=0a62f675479175606ba25cc28e0c28fb17425b0d;hp=afc5b1a4c6a1d1e4b7c462013076b84c02f32115;hpb=1c133e22c6e3f2701e057ee4f486f1fcaffe8428;p=dbsrgits%2FDBIx-Class.git diff --git a/t/47bind_attribute.t b/t/47bind_attribute.t index afc5b1a..3bc1935 100644 --- a/t/47bind_attribute.t +++ b/t/47bind_attribute.t @@ -60,7 +60,7 @@ $new_source->name(\<<''); join cd on cd.artist=a.artistid where cd.year=?) -$schema->register_source('Complex' => $new_source); +$schema->register_extra_source('Complex' => $new_source); $rs = $schema->resultset('Complex')->search({}, { bind => [ 1999 ] }); is ( $rs->count, 1, 'cookbook arbitrary sql example' ); @@ -73,6 +73,10 @@ $rs = $schema->resultset('Complex')->search({}, { bind => [ 1999 ] }) is ( $rs->count, 1, '...cookbook (bind first) + chained search' ); TODO: { + # not sure what causes an uninit warning here, please remove when the TODO starts to pass, + # so the real reason for the warning can be found and fixed + local $SIG{__WARN__} = sub { warn @_ unless $_[0] =~ /uninitialized/ }; + local $TODO = 'bind args order needs fixing (semifor)'; $rs = $schema->resultset('Complex')->search({}, { bind => [ 1999 ] }) ->search({ 'artistid' => 1 }, {