dblayeroo : if there is only one displayed GROUP select, do not add an empty "GROUP BY" in SQL request. The request is invalid.
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4286 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -2315,7 +2315,8 @@ class dblayeroo
|
||||
if ($this->groupByNeeded ())
|
||||
{
|
||||
$groupByExpression = $this->groupByGet ();
|
||||
$sql .= "\n GROUP BY ". implode (",", $groupByExpression);
|
||||
if (count ($groupByExpression))
|
||||
$sql .= "\n GROUP BY ". implode (",", $groupByExpression);
|
||||
}
|
||||
if (count ($order))
|
||||
$sql .= "\n ORDER BY ". implode (",", $order);
|
||||
|
||||
Reference in New Issue
Block a user