From: Peter Rabbitson Date: Mon, 29 Jun 2009 07:49:53 +0000 (+0000) Subject: This is tested elsewhere X-Git-Tag: v0.08108~37^2~8 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5cf7bfaa8858c1c0026b59a704ef3ee25238221c;p=dbsrgits%2FDBIx-Class.git This is tested elsewhere --- diff --git a/t/60core.t b/t/60core.t index b3eda4a..21852ef 100644 --- a/t/60core.t +++ b/t/60core.t @@ -9,7 +9,7 @@ use DBIC::SqlMakerTest; my $schema = DBICTest->init_schema(); -plan tests => 106; +plan tests => 105; eval { require DateTime::Format::SQLite }; my $NO_DTFM = $@ ? 1 : 0; @@ -230,19 +230,9 @@ is ($collapsed_or_rs->all, 4, 'Collapsed joined search with OR returned correct is ($collapsed_or_rs->count, 4, 'Collapsed search count with OR ok'); my $pref_or_rs = $collapsed_or_rs->search ({}, { prefetch => [qw/tags/] }); -is_same_sql_bind ( - $pref_or_rs->as_query, - '(SELECT me.cdid, me.artist, me.title, me.year, me.genreid, me.single_track, tags.tagid, tags.cd, tags.tag FROM cd me LEFT JOIN tags tags ON tags.cd = me.cdid WHERE ( ( tags.tag = ? OR tags.tag = ? ) ) GROUP BY me.cdid, me.artist, me.title, me.year, me.genreid, me.single_track, tags.tagid, tags.cd, tags.tag ORDER BY cdid, tags.cd, tags.tag)', - [ - [ 'tags.tag' => 'Cheesy' ], - [ 'tags.tag' => 'Blue' ], - ], - 'Prefetch + distinct resulted in correct group_by', -); is ($pref_or_rs->all, 4, 'Prefetched grouped search with OR returned correct number of rows'); is ($pref_or_rs->count, 4, 'Prefetched grouped count with OR ok'); - { my $tcount = $schema->resultset('Track')->search( {},