From: x2002marichez Date: Thu, 23 Aug 2007 13:06:48 +0000 (+0000) Subject: Minor fix to print count(foo) instead of (foo) in the db checks X-Git-Tag: xorg/0.9.15~196 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=7ce7fcc4438c48be64f904e2d80530f5e04ecc53;p=platal.git Minor fix to print count(foo) instead of (foo) in the db checks git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1930 839d8a87-29fc-0310-9880-83ba4fa771e5 --- diff --git a/bin/cron/checkdb.php b/bin/cron/checkdb.php index 5fadbd6..f6b4889 100755 --- a/bin/cron/checkdb.php +++ b/bin/cron/checkdb.php @@ -88,14 +88,14 @@ check("select uid from tels where tel_pub != 'private' and tel_pub !='ax' and te /* validite de adresses */ check("select uid, adrid from adresses where FIND_IN_SET('pro',statut)","Utilisateurs ayant encore une adresse pro dans leurs adresses"); -check("select uid, adrid from adresses group by uid having count(adrid) > 7", "Utilisateurs ayant trop d'adresses"); +check("select uid, count(adrid) from adresses group by uid having count(adrid) > 7", "Utilisateurs ayant trop d'adresses"); /* Validite de entreprises */ -check("select uid, entrid from entreprises group by uid having count(entrid) > 2","Utilisateurs ayant trop d'entreprises"); +check("select uid, count(entrid) from entreprises group by uid having count(entrid) > 2","Utilisateurs ayant trop d'entreprises"); /* Validite des tables de langues, competences, mentoring*/ -check("select uid, lid from langues_ins group by uid having count(lid) > 10","Utilisateurs ayant trop de langues"); -check("select uid, cid from competences_ins group by uid having count(cid) > 20","Utilisateurs ayant trop de competences"); +check("select uid, count(lid) from langues_ins group by uid having count(lid) > 10","Utilisateurs ayant trop de langues"); +check("select uid, count(cid) from competences_ins group by uid having count(cid) > 20","Utilisateurs ayant trop de competences"); /* validite de aliases */ check("SELECT a.*