From 8b4fdb54ea033474eb0fc08a0216bed967ff3783 Mon Sep 17 00:00:00 2001 From: Eric Date: Wed, 4 Dec 2019 11:17:31 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B01213=20-=20Allow=20NOT=20IN=20SELECT=20i?= =?UTF-8?q?n=20OQL=20syntax=20-=20support=20of=20UNION=20queries?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/sqlunionquery.class.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/sqlunionquery.class.inc.php b/core/sqlunionquery.class.inc.php index 786c23f7a..188cdafc2 100644 --- a/core/sqlunionquery.class.inc.php +++ b/core/sqlunionquery.class.inc.php @@ -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;