$valStr =
[];
foreach ($values as $key =>
$val) { $valStr[] =
$key . ' = ' .
$val;
} if ($this->QBLimit
) { $this->
where('rownum <= ',
$this->QBLimit, false
);
} return 'UPDATE ' .
$this->
compileIgnore('update'
) .
$table . ' SET ' .
implode(', ',
$valStr) .
$this->
compileWhereHaving('QBWhere'
) .
$this->
compileOrderBy();
} /**
* Generates a platform-specific LIMIT clause.
*/
protected function _limit(string
$sql, bool
$offsetIgnore = false
): string
{ $offset =
(int) ($offsetIgnore === false ?
$this->QBOffset : 0
);
if (version_compare($this->db->
getVersion(), '12.1', '>='
)) { // OFFSET-FETCH can be used only with the ORDER BY clause