Skip to content

Commit

Permalink
built in connection
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Green committed Oct 23, 2014
1 parent 844cbe7 commit f1d13bf
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/DbSync/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,12 @@ public function query($sql, $bind = array()) {

$stmt = $this->getConnection()->prepare($sql);

$start = microtime(true);

try {
$stmt->execute($bind);
}catch(\PDOException $e){
throw new \PDOException($e->getMessage() . "\n QUERY: " . $sql . "\n BIND: " . var_export($bind,1));
}

$time = microtime(true) - $start;

return $stmt;
}

Expand Down

0 comments on commit f1d13bf

Please sign in to comment.