Home
last modified time | relevance | path

Searched refs:row (Results 51 – 75 of 315) sorted by relevance

12345678910>>...13

/PHP-5.5/ext/pdo_mysql/tests/
H A Dmysql_pdo_test.inc145 foreach ($db->query("show variables like 'have%'") as $row) {
146 if (!empty($row) && $row[1] == 'YES' && ($row[0] == 'have_innodb' || $row[0] == 'have_bdb')) {
147 return str_replace("have_", "", $row[0]);
151 foreach ($db->query("SHOW ENGINES") as $row) {
152 if (isset($row['engine']) && isset($row['support'])) {
153 if ('InnoDB' == $row['engine'] && ('YES' == $row['support'] || 'DEFAULT' == $row['support']))
H A Dpdo_mysql_types.phpt32 $row = $stmt->fetch(PDO::FETCH_ASSOC);
35 if (!isset($row['id']) || !isset($row['label'])) {
36 …printf("[%03d + 2] Fetched result seems wrong, dumping result: %s\n", $offset, var_export($row, tr…
40 if ($row['id'] != $offset) {
41 printf("[%03d + 3] Expecting %s got %s\n", $offset, $row['id']);
46 if (!preg_match($pattern, $row['label'])) {
48 $offset, $pattern, var_export($row['label'], true));
60 …if ($row['label'] !== $exp && !is_null($alternative_type) && gettype($row['label']) != $alternativ…
63 var_export($row['label'], true), gettype($row['label']),
74 if (is_null($pattern) && ($row['label'] != $row_string['label'])) {
[all …]
H A Dpdo_mysql_stmt_variable_columncount.phpt12 $row = $db->query('SELECT VERSION() as _version')->fetch(PDO::FETCH_ASSOC);
14 if (!preg_match('/^(\d+)\.(\d+)\.(\d+)/ismU', $row['_version'], $matches))
30 $row = $stmt->fetch(PDO::FETCH_ASSOC);
33 if (!isset($row['one']) || ($row['one'] != 1)) {
34 printf("[%03d + 1] Expecting array('one' => 1), got %s\n", $offset, var_export($row, true));
39 (!isset($row['two']) || ($row['two'] != 2))) {
40 …printf("[%03d + 2] Expecting array('one' => 1, 'two' => 2), got %s\n", $offset, var_export($row, t…
42 } else if (($columns == 1) && isset($row['two'])) {
H A Dbug_44454.phpt25 printf("... SELECT has returned %d row...\n", $stmt->rowCount());
26 while ($row = $stmt->fetch()) {
45 printf("... SELECT has returned %d row...\n", $stmt->rowCount());
46 foreach ($stmt as $row) {
78 ... SELECT has returned 1 row...
86 ... SELECT has returned 1 row...
96 ... SELECT has returned 1 row...
104 ... SELECT has returned 1 row...
/PHP-5.5/ext/pdo/tests/
H A Dpecl_bug_5772.phpt20 function heLLO($row) {
21 return $row;
24 foreach ($db->query("SELECT * FROM test")->fetchAll(PDO::FETCH_FUNC, 'heLLO') as $row) {
25 var_dump($row);
/PHP-5.5/ext/pdo_oci/tests/
H A Dbug46274_2.phpt51 var_dump($row = $res->fetch());
52 var_dump(fread($row[0], 1024));
53 fclose($row[0]);
56 var_dump($row = $res->fetch());
57 var_dump(fread($row[0], 1024));
58 fclose($row[0]);
/PHP-5.5/ext/pgsql/tests/
H A Dbug60244.phpt2 Bug #60244 (pg_fetch_* functions do not validate that row param is >0)
29 Warning: pg_fetch_array(): The row parameter must be greater or equal to zero in %sbug60244.php on …
32 Warning: pg_fetch_assoc(): The row parameter must be greater or equal to zero in %sbug60244.php on …
35 Warning: pg_fetch_object(): The row parameter must be greater or equal to zero in %sbug60244.php on…
38 Warning: pg_fetch_row(): The row parameter must be greater or equal to zero in %sbug60244.php on li…
/PHP-5.5/ext/mysql/tests/
H A Dmysql_pconn_max_links.phpt29 $row = mysql_fetch_assoc($res);
31 if ($row['Value'] == "ON")
37 $row = mysql_fetch_assoc($res);
39 $host = substr($row['_user'], strrpos($row['_user'], "@") + 1, strlen($row['_user']));
98 var_dump($row);
104 $row = mysql_fetch_assoc($res);
106 $host = substr($row['_user'], strrpos($row['_user'], "@") + 1, strlen($row['_user']));
124 $running_threads[$row['Id']] = $row;
165 var_dump($row);
184 $row = mysql_fetch_assoc($res);
[all …]
H A Dmysql_data_seek.phpt31 $row = mysql_fetch_assoc($res);
32 if (4 != $row['id'])
33 printf("[006] Expecting record 4/d, got record %s/%s\n", $row['id'], $row['label']);
38 $row = mysql_fetch_assoc($res);
39 if (1 != $row['id'])
40 printf("[008] Expecting record 1/a, got record %s/%s\n", $row['id'], $row['label']);
H A Dmysql_list_tables.phpt40 while ($row = mysql_fetch_assoc($res_def))
41 $tables_def[] = $row;
44 while ($row = mysql_fetch_assoc($res))
45 $tables[] = $row;
48 while ($row = mysql_fetch_assoc($res_query))
49 $tables_query[] = $row;
/PHP-5.5/ext/pdo_pgsql/tests/
H A Dlarge_objects.phpt40 while (($row = $stmt->fetch(PDO::FETCH_ASSOC))) {
41 var_dump($row['blobid']);
51 while (($row = $stmt->fetch(PDO::FETCH_ASSOC))) {
52 var_dump($row['blobid']);
53 var_dump(is_int($row['bloboid']));
62 while (($row = $stmt->fetch(PDO::FETCH_ASSOC))) {
63 var_dump($row['blobid']);
64 var_dump(is_int($row['bloboid']));
/PHP-5.5/ext/mysqli/tests/
H A Dmysqli_select_db.phpt37 if (!$row = mysqli_fetch_assoc($res))
40 if ($row['dbname'] !== (string)$db)
41 printf("[008] Expecting database '%s', found '%s'\n", $db, $row['dbname']);
51 if (!$row = mysqli_fetch_assoc($res))
54 if (strtolower($row['dbname']) !== 'mysql')
55 printf("[011] Expecting database 'mysql', found '%s'\n", $row['dbname']);
65 if (!$row = mysqli_fetch_assoc($res))
68 $current_db = $row['dbname'];
88 if (!$row = mysqli_fetch_assoc($res))
91 if (strtolower($row['dbname']) != strtolower($current_db))
[all …]
H A Dmysqli_stmt_bind_param_type_juggling.phpt66 $row = mysqli_fetch_assoc($res);
67 if (($row['col1'] != $bind_value1) || ($row['col2'] != $bind_value1)) {
70 $row['col1'], $row['col2'],
75 $row = mysqli_fetch_assoc($res);
76 if (($row['col1'] != $bind_value1) || ($row['col2'] != $bind_value2)) {
79 $row['col1'], $row['col2'],
H A Dmysqli_no_reconnect.phpt28 while ($row = mysqli_fetch_assoc($res))
29 $running_threads[$row['Id']] = $row;
44 if (!$row = mysqli_fetch_assoc($res))
49 if ($row['Value'] != 2)
61 while ($row = mysqli_fetch_assoc($res))
62 $running_threads[$row['Id']] = $row;
107 while ($row = mysqli_fetch_assoc($res))
108 $running_threads[$row['Id']] = $row;
H A Dmysqli_pam_sha256_public_key_option.phpt28 while ($row = $res->fetch_assoc()) {
29 if (($row['Name'] == 'sha256_password') && ($row['Status'] == 'ACTIVE')) {
41 if (!($row = $res->fetch_assoc())) {
45 if (strlen($row['Value']) < 100) {
54 if (strlen($row['Value']) != fwrite($fp, $row['Value'])) {
109 if (!$row = mysqli_fetch_assoc($res)) {
113 if ($row['id'] != 1) {
114 printf("[005] Expecting 1 got %s/'%s'", gettype($row['id']), $row['id']);
H A Dmysqli_data_seek_oo.phpt41 $row = $res->fetch_assoc();
42 if (4 != $row['id'])
43 printf("[008] Expecting record 4/d, got record %s/%s\n", $row['id'], $row['label']);
48 $row = $res->fetch_assoc();
49 if (1 != $row['id'])
50 printf("[010] Expecting record 1/a, got record %s/%s\n", $row['id'], $row['label']);
H A Dmysqli_pam_sha256.phpt28 while ($row = $res->fetch_assoc()) {
29 if (($row['Name'] == 'sha256_password') && ($row['Status'] == 'ACTIVE')) {
41 if (!($row = $res->fetch_assoc())) {
45 if (strlen($row['Value']) < 100) {
92 if (!$row = mysqli_fetch_assoc($res)) {
96 if ($row['id'] != 1) {
97 printf("[004] Expecting 1 got %s/'%s'", gettype($row['id']), $row['id']);
H A Dmysqli_stmt_send_long_data.phpt47 if (!$row = mysqli_fetch_assoc($res))
52 if (isset($row['VARIABLE_VALUE']) && !isset($row['Value']))
54 $row['Value'] = $row['VARIABLE_VALUE'];
56 if (0 === ($max_allowed_packet = (int)$row['Value']))
107 if (!$row = mysqli_fetch_assoc($res))
112 if (empty($row['id']) || empty($row['label']) || ($row['id'] != 1))
115 if ($blob != $row['label'])
/PHP-5.5/ext/sqlite3/tests/
H A Dsqlite3_36_create_collation.phpt24 while ($row = $defaultSort->fetchArray()){
25 echo $row['s'], "\n";
29 while ($row = $naturalSort->fetchArray()){
30 echo $row['s'], "\n";
/PHP-5.5/ext/pdo_sqlite/tests/
H A Dpdo_sqlite_createcollation.phpt20 foreach ($result as $row) {
21 echo $row['name'] . "\n";
25 foreach ($result as $row) {
26 echo $row['name'] . "\n";
/PHP-5.5/ext/oci8/tests/
H A Dbug40415.phpt50 while ($row = oci_fetch_assoc($stmt)) {
51 print "Got row \"".$row['ID1']."\". Now getting nested cursor:\n";
52 var_dump(oci_execute($row['CURSOR']));
53 while ($row_n = oci_fetch_assoc($row['CURSOR']) ) {
99 Got row "11". Now getting nested cursor:
113 Got row "12". Now getting nested cursor:
127 Got row "13". Now getting nested cursor:
H A Dxmltype_02.phpt61 // Query the row back
66 $row = oci_fetch_array($s, OCI_NUM);
68 var_dump($row);
72 $sx = simplexml_load_string((binary)$row[0]->load());
73 $row[0]->free();
92 // Query the changed row back and print it
97 $row = oci_fetch_array($s, OCI_NUM);
98 var_dump($row[0]->load());
99 $row[0]->free();
H A Dbind_rowid.phpt15 while ($row = oci_fetch_array($s, OCI_ASSOC+OCI_RETURN_NULLS)) {
16 var_dump($row);
36 $row = oci_fetch_array($s, OCI_ASSOC+OCI_RETURN_NULLS);
38 $rid = $row['ROWID'];
39 $addr = $row['ADDRESS'];
H A Dlob_004.phpt39 var_dump($row = oci_fetch_array($s));
41 var_dump($row[0]->append($blob));
42 var_dump($row[0]->read(10000));
50 $row = oci_fetch_array($s);
52 var_dump($row[0]->read(10000));
H A Dlob_024.phpt37 var_dump($row = oci_fetch_array($s));
39 var_dump(strlen($row[0]->load()));
40 var_dump(strlen(oci_lob_load($row[0])));
42 unset($row[0]->descriptor);
43 var_dump(oci_lob_load($row[0]));

Completed in 84 milliseconds

12345678910>>...13