Skip to content

Commit

Permalink
updated SQL to use new ixlatest table
Browse files Browse the repository at this point in the history
  • Loading branch information
barbie committed Jul 16, 2009
1 parent 3467b5c commit b343de9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/CPAN/Testers/WWW/Reports/Mailer.pm
Expand Up @@ -199,7 +199,7 @@ my %phrasebook = (
'FindAuthorType' => "SELECT pauseid FROM prefs_distributions WHERE report = ?",

'GetReports' => "SELECT id,dist,version,platform,perl,state FROM cpanstats WHERE id > ? AND state IN ('pass','fail','na','unknown') ORDER BY id",
'GetReports2' => "SELECT c.id,c.dist,c.version,c.platform,c.perl,c.state FROM cpanstats AS c WHERE c.id > ? AND c.state IN ('pass','fail','na','unknown') INNER JOIN ixlatest AS x ON x.dist=c.dist WHERE author IN (%s) ORDER BY id",
'GetReports2' => "SELECT c.id,c.dist,c.version,c.platform,c.perl,c.state FROM cpanstats AS c INNER JOIN ixlatest AS x ON x.dist=c.dist WHERE c.id > ? AND c.state IN ('pass','fail','na','unknown') AND author IN (%s) ORDER BY id",
'GetReportCount' => "SELECT id FROM cpanstats WHERE platform=? AND perl=? AND state=? AND id < ? LIMIT 2",
'GetLatestDistVers' => "SELECT version FROM cpanstats WHERE dist=? AND state='cpan' ORDER BY id DESC LIMIT 1",
'GetAuthor' => "SELECT tester FROM cpanstats WHERE dist=? AND version=? AND state='cpan' LIMIT 1",
Expand Down

0 comments on commit b343de9

Please sign in to comment.