Don't rely on GROUP BY and DISTINCT() sorting identically.
Dagfinn Ilmari Mannsåker [Tue, 25 Oct 2011 00:48:44 +0000 (01:48 +0100)]
t/88result_set_column.t

index 847483a..044e71a 100644 (file)
@@ -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',
 );