Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Show the last 200 queries instead of the first 200.

Fixes #3273
  • Loading branch information...
commit 3e0fa0009bf91651ddebe9f08265095f9cfb31b3 1 parent 59f8402
@markstory markstory authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 lib/Cake/Model/Datasource/DboSource.php
View
12 lib/Cake/Model/Datasource/DboSource.php
@@ -921,14 +921,14 @@ public function logQuery($sql, $params = array()) {
$this->_queriesCnt++;
$this->_queriesTime += $this->took;
$this->_queriesLog[] = array(
- 'query' => $sql,
- 'params' => $params,
- 'affected' => $this->affected,
- 'numRows' => $this->numRows,
- 'took' => $this->took
+ 'query' => $sql,
+ 'params' => $params,
+ 'affected' => $this->affected,
+ 'numRows' => $this->numRows,
+ 'took' => $this->took
);
if (count($this->_queriesLog) > $this->_queriesLogMax) {
- array_pop($this->_queriesLog);
+ array_shift($this->_queriesLog);
}
}

0 comments on commit 3e0fa00

Please sign in to comment.
Something went wrong with that request. Please try again.