Permalink
Browse files

lazy params fix

  • Loading branch information...
1 parent 8056a25 commit 5a4cffe0d526e14f7476aa1e900c289661f30d39 @slava-vishnyakov committed Jun 22, 2011
Showing with 7 additions and 0 deletions.
  1. +7 −0 Tests/index.php
View
@@ -410,6 +410,13 @@ public function testSetModelForException2() {
$this->db->set_model_for($this->table, 'Some1');
}
+ /**
+ * @depends testTableCreation
+ */
+ public function testLazyParamExecute() {
+ $q = $this->db->execute('SELECT ? as A, ? as B', '1', '2')->fetch_row();
+ $this->assertEquals(array('A' => '1', 'B' => '2'), $q);
+ }
}
class Some1 {

0 comments on commit 5a4cffe

Please sign in to comment.