From 1e31196dee0cd18e2af354594a81d3cb36801bd3 Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Thu, 6 Feb 2014 17:07:29 -0500 Subject: [PATCH] Add another test and try again --- tests/databases/firebird/firebird-qb.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/databases/firebird/firebird-qb.php b/tests/databases/firebird/firebird-qb.php index d07ea9e..6e6ceea 100644 --- a/tests/databases/firebird/firebird-qb.php +++ b/tests/databases/firebird/firebird-qb.php @@ -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); + } } \ No newline at end of file