aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-11-02 16:20:33 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-11-02 16:20:33 +0100
commit2f8034bf4cb919391de7e277c89540113ed3ec69 (patch)
treed9e46c72a8ab9e5f2d7616b6c669717ca1614ae2 /web
parentae374404e75e622f9e45517fa8db8dfb7f120c42 (diff)
downloadbuildroot-test-2f8034bf4cb919391de7e277c89540113ed3ec69.tar.gz
buildroot-test-2f8034bf4cb919391de7e277c89540113ed3ec69.tar.bz2
stats.php: fix SQL query with new MySQL versions
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'web')
-rw-r--r--web/stats.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/stats.php b/web/stats.php
index ecd98b7..bdb835f 100644
--- a/web/stats.php
+++ b/web/stats.php
@@ -5,7 +5,7 @@ bab_header("Buildroot tests statistics");
$db = new db();
-$sql = "select sum(status=0) as success,sum(status=1) as failures,sum(status=2) as timeouts,count(*) as total,date(builddate) as day from results group by date(builddate) order by builddate desc limit 30;";
+$sql = "select sum(status=0) as success,sum(status=1) as failures,sum(status=2) as timeouts,count(*) as total,date(builddate) as day from results group by date(builddate) order by date(builddate) desc limit 30;";
$ret = $db->query($sql);
if ($ret == FALSE) {