diff options
author | tianhe1986 <w1s2j3229@163.com> | 2017-06-15 11:58:54 +0200 |
---|---|---|
committer | tianhe1986 <w1s2j3229@163.com> | 2017-06-15 11:58:54 +0200 |
commit | bcd005fafa195d443db2419629bfeed99e49fc7e (patch) | |
tree | a10393932a5cb1f8d6eb7b0e3b7e2438d6376c96 /tests/codeigniter/database/query_builder | |
parent | f8df72efa0e085f3f8fbbd560b8b74704d5efec5 (diff) |
Getting right num of rows with LIMIT usage.
Signed-off-by: tianhe1986 <w1s2j3229@163.com>
Diffstat (limited to 'tests/codeigniter/database/query_builder')
-rw-r--r-- | tests/codeigniter/database/query_builder/count_test.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/codeigniter/database/query_builder/count_test.php b/tests/codeigniter/database/query_builder/count_test.php index cce3fb61d..da312d866 100644 --- a/tests/codeigniter/database/query_builder/count_test.php +++ b/tests/codeigniter/database/query_builder/count_test.php @@ -42,7 +42,7 @@ class Count_test extends CI_TestCase { */ public function test_count_all_results_limit() { - $this->assertEquals(2, $this->db->like('name', 'ian')->limit(10, 10)->count_all_results('job')); + $this->assertEquals(1, $this->db->like('name', 'ian')->limit(1)->count_all_results('job')); } }
\ No newline at end of file |