Home
last modified time | relevance | path

Searched refs:stmt (Results 1 – 25 of 450) sorted by relevance

12345678910>>...18

/PHP-8.4/ext/mysqlnd/
H A Dmysqlnd_ps.c80 if (!stmt || !conn || !stmt->result) { in MYSQLND_METHOD()
150 if (!stmt || !conn || !stmt->result) { in MYSQLND_METHOD()
230 if (!stmt || !conn || !stmt->result) { in MYSQLND_METHOD()
727 if (!stmt || !conn || !stmt->result) { in MYSQLND_METHOD()
743 result->m.use_result(stmt->result, stmt); in MYSQLND_METHOD()
858 if (!stmt || !stmt->conn) { in MYSQLND_METHOD()
1383 return stmt && stmt->result? mysqlnd_num_rows(stmt->result):0; in MYSQLND_METHOD()
1413 return stmt? stmt->field_count : 0; in MYSQLND_METHOD()
1423 return stmt? stmt->param_count : 0; in MYSQLND_METHOD()
1463 return stmt && stmt->result? stmt->result->m.seek_data(stmt->result, row) : FAIL; in MYSQLND_METHOD()
[all …]
H A Dmysqlnd.h165 #define mysqlnd_stmt_num_rows(stmt) (stmt)->m->get_num_rows((stmt)) argument
166 #define mysqlnd_stmt_param_count(stmt) (stmt)->m->get_param_count((stmt)) argument
170 #define mysqlnd_stmt_errno(stmt) (stmt)->m->get_error_no((stmt)) argument
171 #define mysqlnd_stmt_error(stmt) (stmt)->m->get_error_str((stmt)) argument
172 #define mysqlnd_stmt_sqlstate(stmt) (stmt)->m->get_sqlstate((stmt)) argument
217 #define mysqlnd_stmt_get_result(stmt) (stmt)->m->get_result((stmt)) argument
219 #define mysqlnd_stmt_next_result(stmt) (stmt)->m->next_result((stmt)) argument
222 #define mysqlnd_stmt_execute(stmt) (stmt)->m->execute((stmt)) argument
235 #define mysqlnd_stmt_free_result(stmt) (stmt)->m->free_result((stmt)) argument
237 #define mysqlnd_stmt_reset(stmt) (stmt)->m->reset((stmt)) argument
[all …]
/PHP-8.4/ext/pdo_sqlite/
H A Dsqlite_statement.c34 if (S->stmt) { in pdo_sqlite_stmt_dtor()
36 S->stmt = NULL; in pdo_sqlite_stmt_dtor()
47 sqlite3_reset(S->stmt); in pdo_sqlite_stmt_execute()
54 php_pdo_stmt_set_column_count(stmt, sqlite3_data_count(S->stmt)); in pdo_sqlite_stmt_execute()
58 php_pdo_stmt_set_column_count(stmt, sqlite3_column_count(S->stmt)); in pdo_sqlite_stmt_execute()
60 sqlite3_reset(S->stmt); in pdo_sqlite_stmt_execute()
65 sqlite3_reset(S->stmt); in pdo_sqlite_stmt_execute()
207 if (!S->stmt) { in pdo_sqlite_stmt_fetch()
259 if (!S->stmt) { in pdo_sqlite_stmt_get_col()
308 if (!S->stmt) { in pdo_sqlite_stmt_col_meta()
[all …]
/PHP-8.4/ext/mysqli/tests/
H A Dmysqli_class_mysqli_stmt_interface.phpt100 assert(mysqli_stmt_errno($stmt) === $stmt->errno);
101 printf("stmt->errno = '%s'\n", $stmt->errno);
103 assert(mysqli_stmt_error($stmt) === $stmt->error);
104 printf("stmt->error = '%s'\n", $stmt->error);
107 var_dump("stmt->error = ", $stmt->error_list);
113 printf("stmt->id = '%s'\n", $stmt->id);
116 printf("stmt->insert_id = '%s'\n", $stmt->insert_id);
119 printf("stmt->num_rows = '%s'\n", $stmt->num_rows);
125 printf("stmt->sqlstate = '%s'\n", $stmt->sqlstate);
128 printf("stmt->unknown = '%s'\n", @$stmt->unknown);
[all …]
H A Dmysqli_stmt_bind_param_call_user_func.phpt18 printf("[002] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
23 printf("[003] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
28 printf("[004] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
39 printf("[006] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
44 0 => &$stmt,
49 printf("[007] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
156 0 => &$stmt,
185 0 => $stmt,
214 0 => $stmt,
242 0 => $stmt,
[all …]
H A Dmysqli_stmt_affected_rows.phpt32 mysqli_stmt_close($stmt);
37 printf("[006] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
39 mysqli_stmt_close($stmt);
44 printf("[007] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
49 mysqli_stmt_close($stmt);
61 mysqli_stmt_close($stmt);
66 printf("[011] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
76 printf("[013] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
86 printf("[015] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
102 printf("[018] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
[all …]
H A Dmysqli_stmt_get_result2.phpt22 printf("[005] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
25 printf("[006] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
29 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
38 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
51 mysqli_stmt_close($stmt);
56 printf("[010] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
60 printf("[011] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
63 printf("[012] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
67 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
75 printf("[014] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
[all …]
H A Dmysqli_stmt_data_seek.phpt23 printf("[005] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
31 printf("[007] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
34 printf("[008] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
38 if (!mysqli_stmt_fetch($stmt))
39 printf("[010] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
46 printf("[012] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
50 mysqli_stmt_data_seek($stmt, mysqli_stmt_num_rows($stmt) + 100);
52 if (mysqli_stmt_fetch($stmt))
53 printf("[014] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
64 printf("[016] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
[all …]
H A Dmysqli_stmt_execute.phpt16 // stmt object status test
26 // stmt object status test
34 printf("[007] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
38 gettype($tmp), $tmp, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
50 printf("[011] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
53 printf("[012] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
61 printf("[014] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
65 printf("[015] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
69 gettype($tmp), $tmp, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
72 if (!mysqli_stmt_bind_result($stmt, $id) || !mysqli_stmt_fetch($stmt))
[all …]
H A Dmysqli_stmt_close.phpt18 mysqli_stmt_close($stmt);
24 printf("[005] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
26 mysqli_stmt_close($stmt);
38 printf("[009] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
42 printf("[010] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
46 printf("[011] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
50 mysqli_stmt_close($stmt);
59 printf("[014] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
63 printf("[015] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
65 if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt))
[all …]
H A Dmysqli_stmt_get_result.phpt21 // stmt object status test
29 printf("[005] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
35 printf("[007] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
38 printf("[008] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
43 mysqli_stmt_close($stmt);
56 printf("[012] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
62 printf("[014] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
81 printf("[019] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
87 printf("[023] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
141 mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
[all …]
H A Dmysqli_stmt_field_count.phpt13 $stmt = mysqli_stmt_init($link);
16 mysqli_stmt_field_count($stmt);
21 if (mysqli_stmt_prepare($stmt, ''))
25 mysqli_stmt_field_count($stmt);
31 printf("[006] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
36 printf("[008] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
41 printf("[010] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
47 printf("[012] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
63 printf("[016] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
69 printf("[018] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
[all …]
H A Dmysqli_stmt_attr_set.phpt33 $stmt->close();
41 $stmt->execute();
50 $stmt->close();
59 $stmt->execute();
68 $stmt->close();
77 $stmt->execute();
86 $stmt->close();
109 $stmt->close();
119 $stmt->close();
133 $stmt->close();
[all …]
H A Dmysqli_stmt_insert_id.phpt13 $stmt = mysqli_stmt_init($link);
16 mysqli_stmt_insert_id($stmt);
22 !mysqli_stmt_execute($stmt)) {
23 printf("[004] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
28 mysqli_stmt_close($stmt);
31 $stmt = mysqli_stmt_init($link);
33 !mysqli_stmt_execute($stmt)) {
34 printf("[006] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
43 printf("[008] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
50 printf("[009] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
[all …]
H A Dmysqli_stmt_execute_stored_proc.phpt51 printf("[017] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
56 mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
59 mysqli_stmt_close($stmt);
92 mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
95 mysqli_stmt_close($stmt);
125 printf("[034] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
130 mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
133 mysqli_stmt_close($stmt);
167 printf("[044] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
172 mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
[all …]
H A Dmysqli_stmt_free_result.phpt21 // stmt object status test
29 printf("[005] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
31 mysqli_stmt_free_result($stmt);
33 if (!mysqli_stmt_execute($stmt))
34 printf("[007] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
36 mysqli_stmt_free_result($stmt);
41 mysqli_stmt_close($stmt);
47 printf("[011] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
50 printf("[012] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
55 mysqli_stmt_free_result($stmt);
[all …]
H A Dmysqli_stmt_bind_result_references.phpt27 if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt) || mysqli_stmt_fetch($stmt))
44 if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt) || mysqli_stmt_fetch($stmt))
64 if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt) || mysqli_stmt_fetch($stmt))
83 if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt) || mysqli_stmt_fetch($stmt))
97 if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt) || mysqli_stmt_fetch($stmt))
112 if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt) || mysqli_stmt_fetch($stmt))
130 if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt) || mysqli_stmt_fetch($stmt))
150 if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt) || mysqli_stmt_fetch($stmt))
171 if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt) || mysqli_stmt_fetch($stmt))
186 if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt) || mysqli_stmt_fetch($stmt))
[all …]
H A Dps_cursor_multiple_result_sets.phpt29 $stmt->execute();
35 $stmt->next_result();
40 $stmt->next_result();
44 $stmt->execute();
45 $stmt->store_result();
51 $stmt->next_result();
52 $stmt->store_result();
57 $stmt->next_result();
61 $stmt->execute();
67 $stmt->next_result();
[all …]
H A Dmysqli_ps_select_union.phpt31 if (!$stmt->execute() || !$stmt->bind_result($column1))
32 printf("[003] [%d] %s\n", $stmt->errno, $stmt->error);
56 if (!$stmt->bind_result($column1) || !$stmt->execute())
57 printf("[006] [%d] %s\n", $stmt->errno, $stmt->error);
85 if (!$stmt->execute() || !$stmt->bind_result($column1))
104 if (!$stmt->bind_result($column1) || !$stmt->execute())
132 if (!$stmt->execute() || !$stmt->bind_result($column1))
171 … if (!$stmt->bind_param('ss', $three, $two) || !$stmt->execute() || !$stmt->bind_result($column1))
189 … if (!$stmt->bind_param('ss', $three, $two) || !$stmt->bind_result($column1) || !$stmt->execute())
209 … if (!$stmt->bind_param('ss', $three, $two) || !$stmt->execute() || !$stmt->bind_result($column1))
[all …]
H A Dmysqli_stmt_multires.phpt22 printf("[003] [%d] %s\n", $stmt->error, $stmt->errno);
26 printf("[005] [%d] %s\n", $stmt->error, $stmt->errno);
32 printf("[004] [%d] %s\n", $stmt->error, $stmt->errno);
36 if (!$stmt->fetch()) {
37 printf("[006] [%d] %s\n", $stmt->error, $stmt->errno);
42 if ($stmt->fetch()) {
47 if ($stmt->fetch()) {
58 printf("[010] [%d] %s\n", $stmt->error, $stmt->errno);
63 printf("[011] [%d] %s\n", $stmt->error, $stmt->errno);
68 if ($stmt->fetch()) {
[all …]
/PHP-8.4/ext/pdo/
H A Dpdo_stmt.c135 if (!stmt->methods->describer(stmt, col)) { in pdo_stmt_describe_columns()
218 row->stmt = stmt; in get_lazy_object()
287 param->stmt = stmt; in really_register_bound_param()
462 if (stmt->methods->executer(stmt)) { in PHP_METHOD()
1550 stmt->dbh->methods->fetch_err(stmt->dbh, stmt, return_value); in PHP_METHOD()
2113 stmt->methods->dtor(stmt); in php_pdo_free_statement()
2293 pdo_stmt_t *stmt = row->stmt; in row_prop_read() local
2330 pdo_stmt_t *stmt = row->stmt; in row_dim_read() local
2368 pdo_stmt_t *stmt = row->stmt; in row_prop_exists() local
2396 pdo_stmt_t *stmt = row->stmt; in row_dim_exists() local
[all …]
/PHP-8.4/ext/pdo_mysql/
H A Dmysql_statement.c81 if (S->stmt) { in pdo_mysql_stmt_dtor()
83 S->stmt = NULL; in pdo_mysql_stmt_dtor()
168 php_pdo_stmt_set_column_count(stmt, mysql_stmt_field_count(S->stmt)); in pdo_mysql_stmt_after_execute_prepared()
279 S->stmt = NULL; in pdo_mysql_stmt_execute_prepared_libmysql()
317 if (S->stmt) { in pdo_mysql_stmt_execute()
349 if (S->stmt) { in pdo_mysql_stmt_next_rowset()
564 if (S->stmt) { in pdo_mysql_stmt_fetch()
594 if (S->stmt) { in pdo_mysql_stmt_fetch()
684 if (S->stmt) { in pdo_mysql_stmt_get_col()
691 if (S->stmt) { in pdo_mysql_stmt_get_col()
[all …]
/PHP-8.4/ext/pdo_mysql/tests/
H A Dpdo_mysql_stmt_bindvalue.phpt29 $stmt->errorCode(), var_export($stmt->errorInfo(), true));
31 $stmt->execute();
36 $stmt->errorCode(), var_export($stmt->errorInfo(), true));
40 $stmt->errorCode(), var_export($stmt->errorInfo(), true));
51 $stmt->errorCode(), var_export($stmt->errorInfo(), true));
58 $stmt->errorCode(), var_export($stmt->errorInfo(), true));
62 $stmt->errorCode(), var_export($stmt->errorInfo(), true));
75 $stmt->errorCode(), var_export($stmt->errorInfo(), true));
82 $stmt->errorCode(), var_export($stmt->errorInfo(), true));
86 $stmt->errorCode(), var_export($stmt->errorInfo(), true));
[all …]
/PHP-8.4/ext/mysqli/
H A Dmysqli_api.c156 MYSQLI_REPORT_STMT_ERROR(stmt->stmt); in PHP_FUNCTION()
453 if (mysql_stmt_execute(stmt->stmt)) { in PHP_FUNCTION()
477 mysqli_stmt_close(stmt->stmt, false); in close_stmt_and_copy_errors()
478 stmt->stmt = NULL; in close_stmt_and_copy_errors()
536 stmt->stmt = NULL; in PHP_FUNCTION()
546 stmt->stmt = NULL; in PHP_FUNCTION()
569 if (mysql_stmt_execute(stmt->stmt)) { in PHP_FUNCTION()
1282 stmt->stmt = NULL; in PHP_FUNCTION()
1297 if (!stmt->stmt) { in PHP_FUNCTION()
1453 stmt->stmt = NULL; in PHP_FUNCTION()
[all …]
/PHP-8.4/ext/pdo_dblib/tests/
H A Dbatch_stmt_rowcount.phpt16 $stmt = $db->query(
26 var_dump($stmt->rowCount());
27 var_dump($stmt->nextRowset());
30 var_dump($stmt->rowCount());
34 var_dump($stmt->rowCount());
38 var_dump($stmt->rowCount());
42 var_dump($stmt->rowCount());
46 var_dump($stmt->fetchAll());
47 var_dump($stmt->rowCount());
51 var_dump($stmt->rowCount());
[all …]

Completed in 86 milliseconds

12345678910>>...18