From: Dagfinn Ilmari Mannsåker Date: Tue, 25 Oct 2011 00:48:44 +0000 (+0100) Subject: Don't rely on GROUP BY and DISTINCT() sorting identically. X-Git-Tag: v0.08196~34 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class.git;a=commitdiff_plain;h=6f723769c28e5307a1b788804ad5998b486c233a Don't rely on GROUP BY and DISTINCT() sorting identically. --- diff --git a/t/88result_set_column.t b/t/88result_set_column.t index 847483a..044e71a 100644 --- a/t/88result_set_column.t +++ b/t/88result_set_column.t @@ -47,8 +47,8 @@ warnings_exist (sub { # test distinct propagation is_deeply ( - [$rs->search ({}, { distinct => 1 })->get_column ('year')->all], - [$rs_year->func('distinct')], + [sort $rs->search ({}, { distinct => 1 })->get_column ('year')->all], + [sort $rs_year->func('distinct')], 'distinct => 1 is passed through properly', );