]> git.donarmstrong.com Git - wannabuild.git/commitdiff
fix 7dce194de7116a1a957c3b4620cbfe12485afd6b
authorAndreas Barth <aba@not.so.argh.org>
Sun, 11 Apr 2010 13:09:59 +0000 (13:09 +0000)
committerAndreas Barth <aba@not.so.argh.org>
Sun, 11 Apr 2010 13:09:59 +0000 (13:09 +0000)
  add values to the select statement and not only a join

bin/wanna-build

index 9080dc7bf99b8842d390def9715ebde9168334ca..5570662d06438b65a7d85c82e451f587aeffc26e 100755 (executable)
@@ -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 "