diff options
| author | Greg Roach <fisharebest@gmail.com> | 2017-11-19 19:54:46 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2017-11-19 21:54:25 +0000 |
| commit | bd52fa32338513b5d44dc6b1b89178c1bbf60b6a (patch) | |
| tree | 9f054a3b38792e33ac422fbed45c859ffba30f58 /app/Statement.php | |
| parent | 33d824dd6b3819ef3838aa81a2eed7430deb432c (diff) | |
| download | webtrees-bd52fa32338513b5d44dc6b1b89178c1bbf60b6a.tar.gz webtrees-bd52fa32338513b5d44dc6b1b89178c1bbf60b6a.tar.bz2 webtrees-bd52fa32338513b5d44dc6b1b89178c1bbf60b6a.zip | |
Use maximebf/debugbar for development
Diffstat (limited to 'app/Statement.php')
| -rw-r--r-- | app/Statement.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/app/Statement.php b/app/Statement.php index df96638007..74ee4cd89a 100644 --- a/app/Statement.php +++ b/app/Statement.php @@ -79,14 +79,11 @@ class Statement { } } - $start = microtime(true); $this->pdo_statement->execute(); - $end = microtime(true); + // If it was a SELECT statement, we cannot run it again. $this->executed = strpos($this->pdo_statement->queryString, 'SELECT') === 0; - Database::logQuery($this->pdo_statement->queryString, $this->pdo_statement->rowCount(), $end - $start, $bind_variables); - return $this; } |
