$this->start = microtime(true);
}
+ function bindValue($parameter, $value, $data_type = null)
+ {
+ $success = parent::bindValue($parameter, $value, $data_type);
+ if ($this->params === null) {
+ $this->params = [];
+ }
+ $this->params[$parameter] = $value;
+ return $success;
+ }
+
function execute($params=null)
{
- $this->params = $params;
+ if ($this->params === null) {
+ $this->params = $params;
+ }
$start = microtime(true);
$result = $params ? parent::execute($params) : parent::execute();
$this->execute_time = microtime(true) - $start;
$this->pdo->report($this->q, $this->params, $total, $this->execute_time);
}
}
-