File: 13limit.phpt

package info (click to toggle)
php-db 1.12.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,040 kB
  • sloc: php: 7,407; pascal: 1,002; xml: 205; sh: 22; makefile: 8
file content (58 lines) | stat: -rwxr-xr-x 1,330 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
--TEST--
DB_driver::row limit
--SKIPIF--
<?php require_once dirname(__FILE__) . '/skipif.inc'; ?>
--FILE--
<?php
require_once dirname(__FILE__) . '/connect.inc';
require_once dirname(__FILE__) . '/droptable.inc';
require_once dirname(__FILE__) . '/../limit.inc';
?>
--EXPECT--
======= From: 0 || Number of rows to fetch: 10 =======
1.- result 0
2.- result 1
3.- result 2
4.- result 3
5.- result 4
6.- result 5
7.- result 6
8.- result 7
9.- result 8
10.- result 9
Row count for limited result: 10
======= From: 10 || Number of rows to fetch: 10 =======
11.- result 10
12.- result 11
13.- result 12
14.- result 13
15.- result 14
16.- result 15
17.- result 16
18.- result 17
19.- result 18
20.- result 19
Row count for limited result: 10
======= From: 20 || Number of rows to fetch: 10 =======
21.- result 20
22.- result 21
23.- result 22
24.- result 23
25.- result 24
26.- result 25
27.- result 26
28.- result 27
29.- result 28
30.- result 29
Row count for limited result: 10
======= From: 30 || Number of rows to fetch: 10 =======
31.- result 30
32.- result 31
33.- result 32
Row count for limited result: 3
======= Passing $params || From: 11 || Number of rows to fetch: 3 =======
12.- result 11
13.- result 12
14.- result 13
======= From: 0 || Number of rows to fetch: 3 || Iterations: 10 =======
Row count for limited result: 3