From 16dbec332d48f9ac6117a657e69fc2c19a932f6c Mon Sep 17 00:00:00 2001 From: Hydra Date: Mon, 1 Apr 2013 20:18:00 -0400 Subject: [PATCH] Postgresql 8.x needs as for column. --- src/lib/Hydra/Controller/Root.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Hydra/Controller/Root.pm b/src/lib/Hydra/Controller/Root.pm index fdaeb80d..0370cc8c 100644 --- a/src/lib/Hydra/Controller/Root.pm +++ b/src/lib/Hydra/Controller/Root.pm @@ -285,7 +285,7 @@ sub search :Local Args(0) { , "jobset.hidden" => 0 }, { order_by => ["enabled_ desc", "project", "jobset", "name"], join => ["project", "jobset"] - , "+select" => [\ "(project.enabled = 1 and jobset.enabled = 1 and exists (select 1 from Builds where project = project.name and jobset = jobset.name and job = me.name and iscurrent = 1)) enabled_"] + , "+select" => [\ "(project.enabled = 1 and jobset.enabled = 1 and exists (select 1 from Builds where project = project.name and jobset = jobset.name and job = me.name and iscurrent = 1)) as enabled_"] , "+as" => ["enabled"] , rows => $c->stash->{limit} + 1 } ) ];