From: Peter Rabbitson Date: Thu, 18 Feb 2010 23:30:37 +0000 (+0000) Subject: Fix bogus test X-Git-Tag: v0.08120~30 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4b08a8b982ab4e7e7dde8f10633c558b11343b8f;p=dbsrgits%2FDBIx-Class.git Fix bogus test --- diff --git a/t/count/distinct.t b/t/count/distinct.t index b93f9ad..cd10793 100644 --- a/t/count/distinct.t +++ b/t/count/distinct.t @@ -74,7 +74,7 @@ for my $get_count ( $rs = $schema->resultset('Tag')->search({ tag => 'Blue' }, { '+select' => { max => 'tagid' }, distinct => 1 }); is($get_count->($rs), 4, 'Count with +select aggreggate'); - $rs = $schema->resultset('Tag')->search({}, { select => 'length(me.tag)', distinct => 1 }); + $rs = $schema->resultset('Tag')->search({}, { select => [\'length(me.tag)'], distinct => 1 }); is($get_count->($rs), 3, 'Count by distinct function result as select literal'); }