Minor fix to print count(foo) instead of (foo) in the db checks
authorx2002marichez <x2002marichez@839d8a87-29fc-0310-9880-83ba4fa771e5>
Thu, 23 Aug 2007 13:06:48 +0000 (13:06 +0000)
committerx2002marichez <x2002marichez@839d8a87-29fc-0310-9880-83ba4fa771e5>
Thu, 23 Aug 2007 13:06:48 +0000 (13:06 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1930 839d8a87-29fc-0310-9880-83ba4fa771e5

bin/cron/checkdb.php

index 5fadbd6..f6b4889 100755 (executable)
@@ -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.*