N°2902 Fix alias renaming when already exists in one OQL of an UNION

The legacy impl is not modified
This commit is contained in:
Eric Espié
2020-04-20 14:06:14 +02:00
committed by Pierre Goiffon
parent 5b60ec9edf
commit 1f750bb12d

View File

@@ -223,9 +223,9 @@ class DBObjectSearch extends DBSearch
public function RenameAlias($sOldName, $sNewName)
{
$bFound = false;
if (array_key_exists($sOldName, $this->m_aClasses))
if (!array_key_exists($sOldName, $this->m_aClasses))
{
$bFound = true;
return false;
}
if (array_key_exists($sNewName, $this->m_aClasses))
{