Skip to content
This repository has been archived by the owner on Jan 8, 2021. It is now read-only.

Commit

Permalink
fixes #33
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Youngblood committed Jul 25, 2013
1 parent 34f82bb commit 1ad040a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/BjyProfiler/Db/Adapter/ProfilingAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ public function getProfiler()
return $this->profiler;
}

public function query($sql, $parametersOrQueryMode = self::QUERY_MODE_PREPARE)
{
$this->getProfiler()->startQuery($sql);
$return = parent::query($sql, $parametersOrQueryMode);
$this->getProfiler()->endQuery();
return $return;
}

public function injectProfilingStatementPrototype(array $options = array())
{
$profiler = $this->getProfiler();
Expand Down

0 comments on commit 1ad040a

Please sign in to comment.