From: Rob Kinyon Date: Fri, 20 Feb 2009 03:07:24 +0000 (+0000) Subject: Fixed failing test X-Git-Tag: v0.08240~63^2~12 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=45594863d5edb66d794ba6b8d6fc9c7f7906186e;p=dbsrgits%2FDBIx-Class.git Fixed failing test --- diff --git a/t/resultset/as_query.t b/t/resultset/as_query.t index 2813b1d..b573606 100644 --- a/t/resultset/as_query.t +++ b/t/resultset/as_query.t @@ -22,7 +22,7 @@ my $cdrs = $schema->resultset('CD'); is_same_sql_bind( $query, \@bind, - "SELECT me.artistid, me.name, me.rank, me.charfield FROM artist me", [], + "(SELECT me.artistid, me.name, me.rank, me.charfield FROM artist me)", [], ); } @@ -34,7 +34,7 @@ $art_rs = $art_rs->search({ name => 'Billy Joel' }); is_same_sql_bind( $query, \@bind, - "SELECT me.artistid, me.name, me.rank, me.charfield FROM artist me WHERE ( name = ? )", + "(SELECT me.artistid, me.name, me.rank, me.charfield FROM artist me WHERE ( name = ? ))", [ [ name => 'Billy Joel' ] ], ); } @@ -47,7 +47,7 @@ $art_rs = $art_rs->search({ rank => 2 }); is_same_sql_bind( $query, \@bind, - "SELECT me.artistid, me.name, me.rank, me.charfield FROM artist me WHERE ( ( rank = ? ) AND ( name = ? ) )", + "(SELECT me.artistid, me.name, me.rank, me.charfield FROM artist me WHERE ( ( ( rank = ? ) AND ( name = ? ) ) ) )", [ [ rank => 2 ], [ name => 'Billy Joel' ] ], ); } @@ -60,7 +60,7 @@ my $rscol = $art_rs->get_column( 'charfield' ); is_same_sql_bind( $query, \@bind, - "SELECT me.charfield FROM artist me WHERE ( ( ( rank = ? ) AND ( name = ? ) ) )", + "(SELECT me.charfield FROM artist me WHERE ( ( ( rank = ? ) AND ( name = ? ) ) ) )", [ [ rank => 2 ], [ name => 'Billy Joel' ] ], ); }