Skip to content
This repository has been archived by the owner on May 14, 2018. It is now read-only.

Commit

Permalink
issue yappie#2 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
slava-vishnyakov committed Jun 22, 2011
1 parent 5a4cffe commit 671c40f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/DBix.php
Expand Up @@ -253,14 +253,17 @@ public function get_sql() {
} }


public function last_id() { public function last_id() {
$this->run();
return $this->db->dbh->lastInsertId(); return $this->db->dbh->lastInsertId();
} }


public function affected() { public function affected() {
$this->run();
return $this->_affected; return $this->_affected;
} }


public function num_rows() { public function num_rows() {
$this->run();
return $this->_num_rows; return $this->_num_rows;
} }


Expand Down

0 comments on commit 671c40f

Please sign in to comment.