#!/usr/bin/perl
+=comment
+
+Copyright (c) 2003-2010, Andrew Dunstan
+
+See accompanying License file for license details
+
+=cut
+
use strict;
use DBI;
use Template;
$sort_clause = "lower(compiler), compiler_version,";
}
-my $db = DBI->connect($dsn,$dbuser,$dbpass) or die("$dsn,$dbuser,$dbpass,$!");
+my $db = DBI->connect($dsn,$dbuser,$dbpass,{pg_expand_array => 0})
+ or die("$dsn,$dbuser,$dbpass,$!");
my $statement =<<EOS;
select timezone('GMT'::text, now())::timestamp(0) without time zone - b.snapshot AS when_ago, b.*
from dashboard_mat b
- order by branch = 'HEAD' desc,
+ order by branch = 'master' desc,
branch desc, $sort_clause
snapshot desc