Home
last modified time | relevance | path

Searched refs:fetch (Results 1 – 25 of 267) sorted by relevance

1234567891011

/php-src/ext/pdo_mysql/tests/
H A Dpdo_mysql_fetch_both.phpt2 MySQL PDOStatement->fetch()
15 function fetch($offset, &$db, $query, $expect = null) {
18 $num = $stmt->fetch(PDO::FETCH_NUM);
21 $assoc = $stmt->fetch(PDO::FETCH_ASSOC);
24 $both = $stmt->fetch(PDO::FETCH_BOTH);
46 fetch(2, $db, 'SELECT 1', array(0 => '1', '1' => '1'));
H A Dpdo_mysql_attr_autocommit.phpt20 $row = $db->query('SELECT @@autocommit AS _autocommit')->fetch(PDO::FETCH_ASSOC);
28 $row = $db->query('SELECT @@autocommit AS _autocommit')->fetch(PDO::FETCH_ASSOC);
46 $row = $db->query('SELECT @@autocommit AS _autocommit')->fetch(PDO::FETCH_ASSOC);
58 $row = $db->query("SELECT COUNT(*) AS _num FROM {$table}")->fetch(PDO::FETCH_ASSOC);
63 $row = $db->query("SELECT COUNT(*) AS _num FROM {$table}")->fetch(PDO::FETCH_ASSOC);
69 $row = $db->query("SELECT COUNT(*) AS _num FROM {$table}")->fetch(PDO::FETCH_ASSOC);
78 $row = $db->query("SELECT COUNT(*) AS _num FROM {$table}")->fetch(PDO::FETCH_ASSOC);
85 $row = $db->query("SELECT COUNT(*) AS _num FROM {$table}")->fetch(PDO::FETCH_ASSOC);
H A Dpdo_mysql_stmt_bindcolumn.phpt36 while ($stmt->fetch(PDO::FETCH_BOUND)) {
45 while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
47 … printf("[005] Fetch bound and fetch assoc differ - column 'id', bound: %s/%s, assoc: %s/%s\n",
52 … printf("[006] Fetch bound and fetch assoc differ - column 'label', bound: %s/%s, assoc: %s/%s\n",
76 while ($stmt->fetch(PDO::FETCH_BOUND)) {
85 while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
87 … printf("[010] Fetch bound and fetch assoc differ - column 'id', bound: %s/%s, assoc: %s/%s\n",
92 … printf("[011] Fetch bound and fetch assoc differ - column 'label', bound: %s/%s, assoc: %s/%s\n",
H A Dbug44327.phpt18 $row = $stmt->fetch(PDO::FETCH_LAZY);
30 $row = $stmt->fetch(PDO::FETCH_LAZY);
38 $row = $stmt->fetch();
/php-src/ext/pdo/
H A Dpdo_stmt.c688 if (stmt->fetch.cls.fci.size && stmt->fetch.cls.fci.params) { in do_fetch_opt_finish()
739 colno = stmt->fetch.column; in do_fetch()
825 ce = stmt->fetch.cls.ce; in do_fetch()
845 if (zend_call_function(&stmt->fetch.cls.fci, &stmt->fetch.cls.fcc) == FAILURE) { in do_fetch()
1010 ZVAL_COPY_VALUE(&stmt->fetch.cls.fci.params[idx], &stmt->fetch.func.values[idx]); in do_fetch()
1025 if (zend_call_function(&stmt->fetch.cls.fci, &stmt->fetch.cls.fcc) == FAILURE) { in do_fetch()
1046 if (zend_call_function(&stmt->fetch.func.fci, &stmt->fetch.func.fcc) == FAILURE) { in do_fetch()
1186 old_ce = stmt->fetch.cls.ce; in PHP_METHOD()
1198 stmt->fetch.cls.ce = ce; in PHP_METHOD()
1209 stmt->fetch.cls.ce = old_ce; in PHP_METHOD()
[all …]
/php-src/ext/reflection/tests/
H A DReflectionFiber_errors.phpt63 Cannot fetch information from a fiber that has not been started or is terminated
64 Cannot fetch information from a fiber that has not been started or is terminated
65 Cannot fetch information from a fiber that has not been started or is terminated
68 Cannot fetch information from a fiber that has not been started or is terminated
69 Cannot fetch information from a fiber that has not been started or is terminated
70 Cannot fetch information from a fiber that has not been started or is terminated
71 Cannot fetch the callable from a fiber that has terminated
/php-src/ext/pdo/tests/
H A Dpdo_034.phpt2 PDO Common: PDO::FETCH_KEY_PAIR fetch mode test
24 var_dump($db->query("SELECT a,b FROM test034")->fetch(PDO::FETCH_KEY_PAIR));
26 var_dump($db->query("SELECT * FROM test034")->fetch(PDO::FETCH_KEY_PAIR));
54 Warning: PDOStatement::fetch(): SQLSTATE[HY000]: General error: PDO::FETCH_KEY_PAIR fetch mode requ…
56 Warning: PDOStatement::fetch(): SQLSTATE[HY000]: General error%spdo_034.php on line %d
H A Dbug_44861.phpt56 var_dump($res->fetch(PDO::FETCH_NUM, PDO::FETCH_ORI_ABS, 3));
57 var_dump($res->fetch(PDO::FETCH_NUM, PDO::FETCH_ORI_PRIOR));
58 var_dump($res->fetch(PDO::FETCH_NUM, PDO::FETCH_ORI_FIRST));
59 var_dump($res->fetch(PDO::FETCH_NUM, PDO::FETCH_ORI_LAST));
60 var_dump($res->fetch(PDO::FETCH_NUM, PDO::FETCH_ORI_REL, -1));
67 var_dump($res->fetch(PDO::FETCH_NUM));
H A Dbug_44173.phpt82 PDO::query() expects exactly 2 arguments for the fetch mode provided, 4 given
84 PDO::query() expects at most 4 arguments for the fetch mode provided, 5 given
85 PDO::query() expects exactly 3 arguments for the fetch mode provided, 2 given
86 PDO::query() expects exactly 3 arguments for the fetch mode provided, 2 given
87 PDO::query() expects at least 3 arguments for the fetch mode provided, 2 given
H A Dbug_39656.phpt2 PDO Common: Bug #39656 (Crash when calling fetch() on a PDO statement object after closeCursor())
27 $row = $stmt->fetch();
32 $row = $stmt->fetch(); // this line will crash CLI
/php-src/ext/pdo_pgsql/tests/
H A Dgh15287.phpt2 PDO PgSQL #15287 (Pdo\Pgsql has no real lazy fetch mode)
44 display([ $stmt1->fetch() ]);
45 display([ $stmt2->fetch() ]);
75 while (($re = $stmt->fetch())) {
96 [ 'query', 'fetch' ],
98 [ 'prepare', 'fetch' ],
112 case 'fetch':
114 while (($re = $stmt->fetch())) {
131 $res = []; while (($re = $stmt->fetch())) $res[] = $re; display($res);
157 === with query / fetch ===
[all …]
H A Ddisable_prepares.phpt23 var_dump($stmt2->fetch());
25 var_dump($stmt2->fetch());
33 var_dump($stmt3->fetch());
35 var_dump($stmt3->fetch());
H A Dbug64953.phpt24 var_dump($st->fetch()); // return false
30 var_dump($st->fetch()); // return array(1) { ["i"]=> string(1) "1" }
36 var_dump($st->fetch());
40 var_dump($st->fetch());
H A Dbug46274.phpt53 var_dump($res->fetch());
56 var_dump($res->fetch());
59 var_dump($res->fetch());
62 var_dump($res->fetch());
H A Dbug46274_2.phpt53 var_dump($x = $res->fetch());
57 var_dump($res->fetch());
61 var_dump($res->fetch());
65 var_dump($res->fetch());
/php-src/ext/pdo_dblib/tests/
H A Dbug_67130.phpt17 var_dump($stmt->fetch());
18 var_dump($stmt->fetch());
21 var_dump($stmt->fetch());
/php-src/ext/mysqli/tests/
H A Dmysqli_stmt_datatype_change.phpt31 var_dump($s1->fetch());
34 var_dump($s1->fetch());
37 var_dump($s1->fetch());
46 var_dump($s1->fetch());
49 var_dump($s1->fetch());
52 var_dump($s1->fetch());
H A Dmysqli_stmt_multires.phpt36 if (!$stmt->fetch()) {
42 if ($stmt->fetch()) {
47 if ($stmt->fetch()) {
62 if (!$stmt->fetch()) {
68 if ($stmt->fetch()) {
H A Dps_cursor_multiple_result_sets.phpt31 while ($stmt->fetch()) {
37 while ($stmt->fetch()) {
47 while ($stmt->fetch()) {
54 while ($stmt->fetch()) {
H A Dmysqli_stmt_prepare.phpt11 // Note: No SQL tests here! We can expand one of the *fetch()
14 // fetch tests, because the fetch tests would have to call prepare/execute etc.
H A Dbug66124.phpt54 echo "fetch id:{$row['id']}\n";
83 echo "fetch id:{$row['id']}\n";
100 fetch id:1311200011005001566
103 fetch id:1311200011005001566
/php-src/Zend/tests/
H A Dbug71428.2.phpt8 …public function fetch(int $first = PDO::FETCH_BOTH, int $second = PDO::FETCH_ORI_NEXT, int $third …
14 …public function fetch(int $first = PDO::FETCH_ASSOC, int $second = PDO::FETCH_ORI_PRIOR, int $thir…
/php-src/ext/pdo_firebird/tests/
H A DrowCount.phpt25 $rows = $stmt->fetch();
26 $rows = $stmt->fetch();
27 var_dump($stmt->fetch());
/php-src/ext/dom/tests/delayed_freeing/
H A Dwithout_contructor.phpt37 Couldn't fetch DOMNode
38 Couldn't fetch DOMNode
/php-src/ext/xmlreader/tests/
H A Dgh16292.phpt22 Warning: XMLReader::expand(): Couldn't fetch DOMCharacterData in %s on line %d
25 Warning: XMLReader::expand(): Couldn't fetch DOMCharacterData in %s on line %d

Completed in 36 milliseconds

1234567891011