X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcount%2Fdistinct.t;h=cd10793d2e7904e8fcfaf722ea7246685a20903a;hb=da69d72e86d9b5ad2ab509dcc199c5a2c7d76311;hp=b93f9ad4249ec0fc87aded434cfcd693ec299501;hpb=324bc21498b1df5a13c87bbd5209b85985d1743f;p=dbsrgits%2FDBIx-Class-Historic.git 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'); }