X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F47bind_attribute.t;h=b9946a4967131559d72f21cd86a677be208f5241;hb=af6aac2d51a435fa60151ac047e1559257fd4eba;hp=be662a2da1d45223c55054fa46fe264339007b34;hpb=af29cd123d78f75d4cc5b622925b7b2860d2d0b7;p=dbsrgits%2FDBIx-Class.git diff --git a/t/47bind_attribute.t b/t/47bind_attribute.t index be662a2..b9946a4 100644 --- a/t/47bind_attribute.t +++ b/t/47bind_attribute.t @@ -74,9 +74,8 @@ is ( $rs->count, 1, '...cookbook (bind first) + chained search' ); { $rs = $schema->resultset('Complex')->search({}, { bind => [ 1999 ] })->search({}, { where => \"title LIKE ?", bind => [ 'Spoon%' ] }); - my ($sql, @bind) = @${$rs->as_query}; is_same_sql_bind( - $sql, \@bind, + $rs->as_query, "(SELECT me.artistid, me.name, me.rank, me.charfield FROM (SELECT a.*, cd.cdid AS cdid, cd.title AS title, cd.year AS year FROM artist a JOIN cd ON cd.artist = a.artistid WHERE cd.year = ?) WHERE title LIKE ?)", [ [ '!!dummy' => '1999' ],