| 1 |
lars |
1 |
--TEST--
|
|
|
2 |
DB_driver::fetch
|
|
|
3 |
--INI--
|
|
|
4 |
error_reporting = 2047
|
|
|
5 |
--SKIPIF--
|
|
|
6 |
<?php chdir(dirname(__FILE__)); require_once './skipif.inc'; ?>
|
|
|
7 |
--FILE--
|
|
|
8 |
<?php
|
|
|
9 |
require_once './mktable.inc';
|
|
|
10 |
require_once '../fetchmodes.inc';
|
|
|
11 |
?>
|
|
|
12 |
--EXPECT--
|
|
|
13 |
testing fetchrow:
|
|
|
14 |
row 1: 42, bing, This is a test, 1999-11-21
|
|
|
15 |
row 2: 1, one, One, 2001-02-16
|
|
|
16 |
row 3: 2, two, Two, 2001-02-15
|
|
|
17 |
row 4: 3, three, Three, 2001-02-14
|
|
|
18 |
row 5: NULL
|
|
|
19 |
testing fetchmodes: fetchrow default default, portability mode DB_PORTABILITY_ALL ^ DB_PORTABILITY_RTRIM
|
|
|
20 |
|
|
|
21 |
output matched expected format
|
|
|
22 |
testing fetchmodes: fetchinto default default
|
|
|
23 |
|
|
|
24 |
42 bing This is a test 1999-11-21
|
|
|
25 |
testing fetchmodes: fetchrow ordered default
|
|
|
26 |
|
|
|
27 |
testing fetchmodes: fetchrow assoc default
|
|
|
28 |
a b c d
|
|
|
29 |
testing fetchmodes: fetchrow ordered default with assoc specified
|
|
|
30 |
a b c d
|
|
|
31 |
testing fetchmodes: fetchrow assoc default with ordered specified
|
|
|
32 |
|
|
|
33 |
testing fetchmodes: fetchinto ordered default
|
|
|
34 |
|
|
|
35 |
testing fetchmodes: fetchinto assoc default
|
|
|
36 |
a b c d
|
|
|
37 |
testing fetchmodes: fetchinto ordered default with assoc specified
|
|
|
38 |
a b c d
|
|
|
39 |
testing fetchmodes: fetchinto assoc default with ordered specified
|
|
|
40 |
|