mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-09 04:52:42 +00:00
parent
59f84024e5
commit
3e0fa0009b
1 changed files with 6 additions and 6 deletions
|
@ -921,14 +921,14 @@ class DboSource extends DataSource {
|
||||||
$this->_queriesCnt++;
|
$this->_queriesCnt++;
|
||||||
$this->_queriesTime += $this->took;
|
$this->_queriesTime += $this->took;
|
||||||
$this->_queriesLog[] = array(
|
$this->_queriesLog[] = array(
|
||||||
'query' => $sql,
|
'query' => $sql,
|
||||||
'params' => $params,
|
'params' => $params,
|
||||||
'affected' => $this->affected,
|
'affected' => $this->affected,
|
||||||
'numRows' => $this->numRows,
|
'numRows' => $this->numRows,
|
||||||
'took' => $this->took
|
'took' => $this->took
|
||||||
);
|
);
|
||||||
if (count($this->_queriesLog) > $this->_queriesLogMax) {
|
if (count($this->_queriesLog) > $this->_queriesLogMax) {
|
||||||
array_pop($this->_queriesLog);
|
array_shift($this->_queriesLog);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue