Correction GROUP BY uniquement quand des tables à lier
This commit is contained in:
parent
818fe15971
commit
28d493fbb8
|
@ -865,7 +865,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (4) On rédige la clause GROUP BY */
|
/* (4) On rédige la clause GROUP BY */
|
||||||
$requestS['GROUPBY'] = SQLBuilder::GROUPBY($groupBy);
|
if( count($groupBy) > 0)
|
||||||
|
$requestS['GROUPBY'] = SQLBuilder::GROUPBY($groupBy);
|
||||||
|
|
||||||
/* [6] Clause LIMIT
|
/* [6] Clause LIMIT
|
||||||
=========================================================*/
|
=========================================================*/
|
||||||
|
@ -880,6 +881,7 @@
|
||||||
|
|
||||||
/* (2) On compose la requête */
|
/* (2) On compose la requête */
|
||||||
$requestString = SQLBuilder::BUILD($requestS).';';
|
$requestString = SQLBuilder::BUILD($requestS).';';
|
||||||
|
var_dump($requestString);
|
||||||
|
|
||||||
/* (3) On prépare la requête */
|
/* (3) On prépare la requête */
|
||||||
$request = Database::getPDO()->prepare($requestString);
|
$request = Database::getPDO()->prepare($requestString);
|
||||||
|
|
Loading…
Reference in New Issue