From 841c238aaf31248748e726c13c4327e64d686125 Mon Sep 17 00:00:00 2001 From: Andreas Barth Date: Sun, 11 Apr 2010 13:09:59 +0000 Subject: [PATCH] fix 7dce194de7116a1a957c3b4620cbfe12485afd6b add values to the select statement and not only a join --- bin/wanna-build | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/wanna-build b/bin/wanna-build index 9080dc7..5570662 100755 --- a/bin/wanna-build +++ b/bin/wanna-build @@ -2544,6 +2544,7 @@ sub get_all_source_info { my $q = "SELECT rel, priority, state_change, permbuildpri, section, buildpri, failed, state, binary_nmu_changelog, bd_problem, version, package, distribution, installed_version, notes, failed_category, builder, old_failed, previous_state, binary_nmu_version, depends, extract(days from date_trunc('days', now() - state_change)) as state_days" # . ", (SELECT max(build_time) FROM ".pkg_history_table_name()." WHERE pkg_history.package = packages.package AND pkg_history.distribution = packages.distribution AND result = 'successful') AS successtime" # . ", (SELECT max(build_time) FROM ".pkg_history_table_name()." WHERE pkg_history.package = packages.package AND pkg_history.distribution = packages.distribution ) AS anytime" + . ", successtime.build_time as successtime, anytime.build_time as anytime" . " FROM " . table_name() . " left join ( " . "select distinct on (package, distribution) build_time, package, distribution from ".pkg_history_table_name()." where result = 'successful' order by package, distribution, timestamp " -- 2.39.2