N.689 61 tables limit. INVESTIGATING the issue. Added a test to reproduce the issue on the standard data model, and a test to build statistics on the number of tables used by classes.

SVN:trunk[4669]
This commit is contained in:
Romain Quetiez
2017-04-05 12:58:33 +00:00
parent d0bc9a0bb8
commit 856a73fb87
2 changed files with 110 additions and 0 deletions

View File

@@ -534,6 +534,17 @@ class SQLObjectQuery extends SQLQuery
return (count($this->m_aJoinSelects) == 0);
}
public function CountTables()
{
$iRet = 1;
foreach ($this->m_aJoinSelects as $i => $aJoinInfo)
{
$oSQLQuery = $aJoinInfo["select"];
$iRet += $oSQLQuery->CountTables();
}
return $iRet;
}
protected function CollectUsedTables(&$aTables)
{
$this->m_oConditionExpr->CollectUsedParents($aTables);