]> git.nbdom.net Git - nb.git/commitdiff
www/dbq/dbq.php
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Sun, 13 Oct 2024 08:28:04 +0000 (10:28 +0200)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Sun, 13 Oct 2024 08:28:04 +0000 (10:28 +0200)
etc/dbq/data.php
www/dbq/dbq.php

index 75101c65833fc24b3c367c4db110450683277a1c..c622b29bb6953f3c12872096aed1b39434f8f333 100644 (file)
@@ -13,7 +13,7 @@ $DBQ['data'] = [
                                                ,max(updated) as last_updated
                                                ,min(updated) as first_updated
                                                ,(SELECT count(val) FROM host_info path WHERE path.host=hi.host AND path.key LIKE '%.path') as repos
-                                               ,max((SELECT DISTINCT val FROM host_info ex WHERE ex.host=hi.host AND ex.key LIKE '%.exit_code' LIMIT 1)) as exit
+                                               ,(SELECT max(CAST(val as INTEGER)) FROM host_info ex WHERE ex.host=hi.host AND ex.key LIKE '%.exit_code') as exit
                                                 FROM host_info hi
                                                 GROUP BY host ORDER BY host
 "),
index 9834a0de9252c877bbf327321664e3ff9f8e8367..0e8dc26a6e15521c9a3cc443f10f65fd8306e12f 100644 (file)
@@ -418,7 +418,6 @@ class DbQ extends nb {
 
                        $this->db->__construct($connect);
                        $this->db->connect();
-# NB 11.06.18                  return $this->db;
                } else {
 
                        // Re use