From b1289533e67d58eea702344d1e9d93656285a72b Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 9 Jul 2009 15:26:55 +0000 Subject: [PATCH] * More database hackery. --- src/lib/Hydra/Base/Controller/ListBuilds.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Hydra/Base/Controller/ListBuilds.pm b/src/lib/Hydra/Base/Controller/ListBuilds.pm index 8b74a6e2..7cbffae1 100644 --- a/src/lib/Hydra/Base/Controller/ListBuilds.pm +++ b/src/lib/Hydra/Base/Controller/ListBuilds.pm @@ -30,7 +30,7 @@ sub getJobStatus { {}, { '+select' => ["me.statusChangeId", "me.statusChangeTime"] , '+as' => ["statusChangeId", "statusChangeTime"] - , order_by => "statusChangeTime DESC" + , order_by => "coalesce(statusChangeTime, 0) desc" }); return $latest;