Add another test and try again
This commit is contained in:
parent
c07a4fcf14
commit
1e31196dee
@ -90,5 +90,21 @@ class FirebirdQBTest extends QBTest {
|
|||||||
|
|
||||||
$this->assertTrue(is_array($res));
|
$this->assertTrue(is_array($res));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
public function testQueryExplain()
|
||||||
|
{
|
||||||
|
$res = $this->db->select('id, key as k, val')
|
||||||
|
->explain()
|
||||||
|
->where('id >', 1)
|
||||||
|
->where('id <', 900)
|
||||||
|
->limit(2, 1)
|
||||||
|
->get_compiled_select('create_test');
|
||||||
|
|
||||||
|
$expected = 'SELECT FIRST 2 SKIP 1 "id","key" AS "k","val" FROM "create_test" WHERE "id" > ? AND "id" < ?';
|
||||||
|
|
||||||
|
$this->assertEqual($expected, $res);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user