N°2272 - OQL performance (fix 2.5 regression)

This commit is contained in:
Eric
2019-09-10 10:42:21 +02:00
parent 0e5c0ff46d
commit 7d8e8df0c5

View File

@@ -498,7 +498,7 @@ class DBUnionSearch extends DBSearch
{
if (count($this->aSearches) == 1)
{
return $this->aSearches[0]->GetSQLQueryStructure($aAttToLoad, $bGetCount, $aGroupByExpr, $aSelectExpr);
return $this->aSearches[0]->GetSQLQueryStructure($aAttToLoad, $bGetCount, $aGroupByExpr, $aSelectedClasses, $aSelectExpr);
}
$aSQLQueries = array();