diff options
author | wei <> | 2007-04-12 12:43:49 +0000 |
---|---|---|
committer | wei <> | 2007-04-12 12:43:49 +0000 |
commit | 32b73a0b1dfcd33e07e7fd2b2cf2fd7d42cf48a0 (patch) | |
tree | bf2b348fa854d82dcf8a9f43ffd43df3eba5a1e8 /tests/simple_unit/DbCommon/CommandBuilderPgsqlTest.php | |
parent | 815ce4bcc616c4b0618046651174062efc93fd06 (diff) |
Add Sqlite driver.
Diffstat (limited to 'tests/simple_unit/DbCommon/CommandBuilderPgsqlTest.php')
-rw-r--r-- | tests/simple_unit/DbCommon/CommandBuilderPgsqlTest.php | 9 |
1 files changed, 4 insertions, 5 deletions
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 @@ -<?php -
+<?php
Prado::using('System.Data.*');
Prado::using('System.Data.Common.Pgsql.TPgsqlMetaData');
@@ -60,15 +59,15 @@ class CommandBuilderPgsqlTest extends UnitTestCase $builder = $meta->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);
}
|