Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
bindValues was removed by upstream, use fetchAffected instead
  • Loading branch information
mbrevda committed Mar 18, 2014
1 parent 60acba1 commit 8cd63c4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/QueryProxy.php
Expand Up @@ -84,8 +84,11 @@ public function __toString()
/**
* Executes a query
*/
public function exec(){
$this->db->bindValues($this->query->getBindValues());
return $this->db->exec($this->query->__toString());
public function exec()
{
return $this->db->fetchAffected(
$this->query->__toString(),
$this->query->getBindValues()
);
}
}

0 comments on commit 8cd63c4

Please sign in to comment.