Add another test and try again

This commit is contained in:
Timothy Warren 2014-02-06 17:07:29 -05:00
parent c07a4fcf14
commit 1e31196dee

View File

@ -90,5 +90,21 @@ class FirebirdQBTest extends QBTest {
$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);
}
}