mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Strengthen the SQL creation from OQL
This commit is contained in:
@@ -339,8 +339,12 @@ class SQLObjectQuery extends SQLQuery
|
||||
$this->PrepareRendering();
|
||||
$sFrom = self::ClauseFrom($this->__aFrom, $sIndent);
|
||||
$sWhere = self::ClauseWhere($this->m_oConditionExpr, $aArgs);
|
||||
// Sanity
|
||||
$iLimitCount = (int)$iLimitCount;
|
||||
if ($iLimitCount > 0)
|
||||
{
|
||||
// Sanity
|
||||
$iLimitStart = (int)$iLimitStart;
|
||||
$sLimit = 'LIMIT '.$iLimitStart.', '.$iLimitCount;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user