From 32b73a0b1dfcd33e07e7fd2b2cf2fd7d42cf48a0 Mon Sep 17 00:00:00 2001 From: wei <> Date: Thu, 12 Apr 2007 12:43:49 +0000 Subject: Add Sqlite driver. --- tests/simple_unit/DbCommon/CommandBuilderPgsqlTest.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'tests/simple_unit/DbCommon/CommandBuilderPgsqlTest.php') diff --git a/tests/simple_unit/DbCommon/CommandBuilderPgsqlTest.php b/tests/simple_unit/DbCommon/CommandBuilderPgsqlTest.php index 8bf2848e..9ee9c411 100644 --- a/tests/simple_unit/DbCommon/CommandBuilderPgsqlTest.php +++ b/tests/simple_unit/DbCommon/CommandBuilderPgsqlTest.php @@ -1,5 +1,4 @@ -createCommandBuilder('address'); $query = 'SELECT * FROM '.$meta->getTableInfo('address')->getTableFullName(); - $limit = $builder->createLimitCondition($query, 1); + $limit = $builder->applyLimitOffset($query, 1); $expect = $query.' LIMIT 1'; $this->assertEqual($expect, $limit); - $limit = $builder->createLimitCondition($query, -1, 10); + $limit = $builder->applyLimitOffset($query, -1, 10); $expect = $query.' OFFSET 10'; $this->assertEqual($expect, $limit); - $limit = $builder->createLimitCondition($query, 2, 3); + $limit = $builder->applyLimitOffset($query, 2, 3); $expect = $query.' LIMIT 2 OFFSET 3'; $this->assertEqual($expect, $limit); } -- cgit v1.2.3