N°1213 - Allow NOT IN SELECT in OQL syntax - support of UNION queries

This commit is contained in:
Eric
2019-12-04 11:17:31 +01:00
parent 1877cb5e93
commit 8b4fdb54ea

View File

@@ -124,11 +124,11 @@ class SQLUnionQuery extends SQLQuery
if (!empty($sOrderBy))
{
$sOrderBy = "ORDER BY $sOrderBy$sLineSep $sLimit";
$sSQL = '('.implode(" $sLineSep UNION$sLineSep ", $aSelects).')'.$sLineSep.$sOrderBy;
$sSQL = implode(" $sLineSep UNION$sLineSep ", $aSelects).$sLineSep.$sOrderBy;
}
else
{
$sSQL = '('.implode(" $sLimit $sLineSep UNION$sLineSep ", $aSelects)." $sLimit)";
$sSQL = implode(" $sLimit $sLineSep UNION$sLineSep ", $aSelects)." $sLimit";
}
}
return $sSQL;