Skip to content

Commit

Permalink
Typdefs fixes.
Browse files Browse the repository at this point in the history
"string" is now a typedef, so revert commit a1beda4.
Put in  a filter for impossibly short results,
and fix the calculation of number of lines.
  • Loading branch information
pg-buildfarm committed Feb 6, 2016
1 parent c360792 commit 0034726
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cgi-bin/typedefs.pl
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@
snapshot > current_date::timestamp - interval '30 days'
group by sysname, branch
)
select snaps.sysname, snaps.branch, snaps.snapshot , length(regexp_replace(log_text,'.','g')) as lines_found
select snaps.sysname, snaps.branch, snaps.snapshot , length(regexp_replace(log_text,'[^\n]','','g')) as lines_found
from build_status_log l
join snaps
on snaps.sysname = l.sysname and snaps.snapshot = l.snapshot
where log_stage = 'typedefs.log' and log_text !~ $$\Wstring\W$$
where log_stage = 'typedefs.log' and length(log_text) > 5000
order by snaps.sysname, snaps.branch != 'HEAD', snaps.branch desc
};
my $builds = $dbh->selectall_arrayref($sql, { Slice => {} });
Expand Down

0 comments on commit 0034726

Please sign in to comment.