Home
last modified time | relevance | path

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

12345678910>>...19

/PHP-7.4/ext/pdo_sqlite/
H A Dsqlite_statement.c36 if (S->stmt) { in pdo_sqlite_stmt_dtor()
38 S->stmt = NULL; in pdo_sqlite_stmt_dtor()
55 if (!stmt->columns) { in pdo_sqlite_stmt_set_column_count()
79 efree(stmt->columns); in pdo_sqlite_stmt_set_column_count()
80 stmt->columns = NULL; in pdo_sqlite_stmt_set_column_count()
89 sqlite3_reset(S->stmt); in pdo_sqlite_stmt_execute()
96 pdo_sqlite_stmt_set_column_count(stmt, sqlite3_data_count(S->stmt)); in pdo_sqlite_stmt_execute()
100 pdo_sqlite_stmt_set_column_count(stmt, sqlite3_column_count(S->stmt)); in pdo_sqlite_stmt_execute()
248 if (!S->stmt) { in pdo_sqlite_stmt_fetch()
309 if (!S->stmt) { in pdo_sqlite_stmt_get_col()
[all …]
/PHP-7.4/ext/mysqlnd/
H A Dmysqlnd_ps.c83 if (!stmt || !conn || !stmt->result) { in MYSQLND_METHOD()
175 if (!stmt || !conn || !stmt->result) { in MYSQLND_METHOD()
255 if (!stmt || !conn || !stmt->result) { in MYSQLND_METHOD()
965 if (!stmt || !conn || !stmt->result) { in MYSQLND_METHOD()
1129 if (!stmt || !stmt->conn) { in MYSQLND_METHOD()
1644 return stmt && stmt->result? mysqlnd_num_rows(stmt->result):0; in MYSQLND_METHOD()
1674 return stmt? stmt->field_count : 0; in MYSQLND_METHOD()
1684 return stmt? stmt->param_count : 0; in MYSQLND_METHOD()
1724 return stmt && stmt->result? stmt->result->m.seek_data(stmt->result, row) : FAIL; in MYSQLND_METHOD()
1734 if (!stmt || !stmt->param_count) { in MYSQLND_METHOD()
[all …]
H A Dmysqlnd.h172 #define mysqlnd_stmt_num_rows(stmt) (stmt)->m->get_num_rows((stmt)) argument
173 #define mysqlnd_stmt_param_count(stmt) (stmt)->m->get_param_count((stmt)) argument
177 #define mysqlnd_stmt_errno(stmt) (stmt)->m->get_error_no((stmt)) argument
178 #define mysqlnd_stmt_error(stmt) (stmt)->m->get_error_str((stmt)) argument
179 #define mysqlnd_stmt_sqlstate(stmt) (stmt)->m->get_sqlstate((stmt)) argument
227 #define mysqlnd_stmt_get_result(stmt) (stmt)->m->get_result((stmt)) argument
229 #define mysqlnd_stmt_next_result(stmt) (stmt)->m->next_result((stmt)) argument
232 #define mysqlnd_stmt_execute(stmt) (stmt)->m->execute((stmt)) argument
246 #define mysqlnd_stmt_free_result(stmt) (stmt)->m->free_result((stmt)) argument
248 #define mysqlnd_stmt_reset(stmt) (stmt)->m->reset((stmt)) argument
[all …]
/PHP-7.4/ext/pdo/
H A Dpdo_stmt.c202 if (!stmt->methods->describer(stmt, col)) { in pdo_stmt_describe_columns()
247 row->stmt = stmt; in get_lazy_object()
324 param->stmt = stmt; in really_register_bound_param()
490 ret = pdo_parse_params(stmt, stmt->query_string, stmt->query_stringlen, in PHP_METHOD()
507 if (stmt->methods->executer(stmt)) { in PHP_METHOD()
1675 stmt->dbh->methods->fetch_err(stmt->dbh, stmt, return_value); in PHP_METHOD()
2030 if (!stmt->methods->next_rowset(stmt)) { in pdo_stmt_do_next_rowset()
2273 stmt->methods->dtor(stmt); in php_pdo_free_statement()
2447 pdo_stmt_t *stmt = row->stmt; in row_prop_read() local
2507 pdo_stmt_t *stmt = row->stmt; in row_prop_exists() local
[all …]
/PHP-7.4/ext/mysqli/tests/
H A Dmysqli_class_mysqli_stmt_interface.phpt94 assert(mysqli_stmt_errno($stmt) === $stmt->errno);
95 printf("stmt->errno = '%s'\n", $stmt->errno);
97 assert(mysqli_stmt_error($stmt) === $stmt->error);
98 printf("stmt->error = '%s'\n", $stmt->error);
101 var_dump("stmt->error = ", $stmt->error_list);
107 printf("stmt->id = '%s'\n", $stmt->id);
110 printf("stmt->insert_id = '%s'\n", $stmt->insert_id);
113 printf("stmt->num_rows = '%s'\n", $stmt->num_rows);
119 printf("stmt->sqlstate = '%s'\n", $stmt->sqlstate);
122 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.phpt41 mysqli_stmt_close($stmt);
46 printf("[006] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
48 mysqli_stmt_close($stmt);
53 printf("[007] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
58 mysqli_stmt_close($stmt);
70 mysqli_stmt_close($stmt);
75 printf("[011] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
85 printf("[013] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
95 printf("[015] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
111 printf("[018] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
[all …]
H A Dmysqli_stmt_get_result2.phpt38 printf("[005] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
41 printf("[006] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
45 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
54 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
72 printf("[010] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
76 printf("[011] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
79 printf("[012] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
83 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
91 printf("[014] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
95 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
[all …]
H A Dmysqli_stmt_execute_stored_proc.phpt35 if (!mysqli_stmt_close($stmt))
47 printf("[017] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
52 mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
55 mysqli_stmt_close($stmt);
90 mysqli_stmt_errno($stmt), mysqli_stmt_error($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_execute.phpt33 // stmt object status test
45 printf("[007] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
49 gettype($tmp), $tmp, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
61 printf("[011] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
64 printf("[012] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
72 printf("[014] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
76 printf("[015] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
80 gettype($tmp), $tmp, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
83 if (!mysqli_stmt_bind_result($stmt, $id) || !mysqli_stmt_fetch($stmt))
91 gettype($tmp), $tmp, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
[all …]
H A Dps_cursor_multiple_result_sets.phpt28 $stmt->execute();
34 $stmt->next_result();
39 $stmt->next_result();
43 $stmt->execute();
44 $stmt->store_result();
50 $stmt->next_result();
51 $stmt->store_result();
56 $stmt->next_result();
60 $stmt->execute();
66 $stmt->next_result();
[all …]
H A Dmysqli_stmt_get_result.phpt35 // stmt object status test
40 printf("[005] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
47 printf("[007] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
50 printf("[008] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
55 mysqli_stmt_close($stmt);
65 printf("[012] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
72 printf("[014] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
88 printf("[019] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
94 printf("[023] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
148 mysqli_stmt_errno($stmt), mysqli_stmt_error($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 Dmysqli_stmt_data_seek.phpt31 printf("[005] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
39 printf("[007] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
42 printf("[008] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
47 if (!mysqli_stmt_fetch($stmt))
48 printf("[010] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
56 printf("[012] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
60 if (!is_null($tmp = mysqli_stmt_data_seek($stmt, mysqli_stmt_num_rows($stmt) + 100)))
63 if (mysqli_stmt_fetch($stmt))
64 printf("[014] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
72 printf("[016] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
[all …]
H A Dmysqli_stmt_insert_id.phpt19 $stmt = @new mysqli_stmt($link);
25 $stmt = mysqli_stmt_init($link);
30 !mysqli_stmt_execute($stmt)) {
31 printf("[004] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
36 mysqli_stmt_close($stmt);
39 $stmt = mysqli_stmt_init($link);
41 !mysqli_stmt_execute($stmt)) {
42 printf("[006] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
51 printf("[008] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
58 printf("[009] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
[all …]
H A Dmysqli_stmt_attr_set.phpt68 $stmt->close();
78 $stmt->execute();
89 $stmt->close();
98 $stmt->execute();
109 $stmt->close();
118 $stmt->execute();
129 $stmt->close();
165 $stmt->close();
175 $stmt->close();
189 $stmt->close();
[all …]
H A Dmysqli_stmt_close.phpt24 if (!$stmt = mysqli_stmt_init($link))
32 printf("[005] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
40 if (!$stmt = mysqli_stmt_init($link))
44 printf("[009] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
48 printf("[010] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
51 if (!mysqli_stmt_execute($stmt))
52 printf("[011] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
66 printf("[014] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
70 printf("[015] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
72 if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt))
[all …]
H A Dmysqli_stmt_field_count.phpt24 $stmt = mysqli_stmt_init($link);
28 if (mysqli_stmt_prepare($stmt, ''))
35 printf("[006] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
40 printf("[008] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
45 printf("[010] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
50 !mysqli_stmt_execute($stmt))
51 printf("[012] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
58 while (mysqli_stmt_fetch($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_ps_select_union.phpt31 if (!$stmt->execute() || !$stmt->bind_result($column1))
32 printf("[003] [%d] %s\n", $stmt->errno, $stmt->error);
57 if (!$stmt->bind_result($column1) || !$stmt->execute())
87 if (!$stmt->execute() || !$stmt->bind_result($column1))
88 printf("[010] [%d] %s\n", $stmt->errno, $stmt->error);
136 if (!$stmt->execute() || !$stmt->bind_result($column1))
137 printf("[017] [%d] %s\n", $stmt->errno, $stmt->error);
177 … if (!$stmt->bind_param('ss', $three, $two) || !$stmt->execute() || !$stmt->bind_result($column1))
196 … if (!$stmt->bind_param('ss', $three, $two) || !$stmt->bind_result($column1) || !$stmt->execute())
217 … if (!$stmt->bind_param('ss', $three, $two) || !$stmt->execute() || !$stmt->bind_result($column1))
[all …]
/PHP-7.4/ext/pdo_mysql/
H A Dmysql_statement.c58 if (S->stmt) { in pdo_mysql_stmt_dtor()
60 S->stmt = NULL; in pdo_mysql_stmt_dtor()
293 stmt->column_count = mysql_stmt_field_count(S->stmt); in pdo_mysql_stmt_execute_prepared_mysqlnd()
323 if (S->stmt) { in pdo_mysql_stmt_execute()
353 if (S->stmt) { in pdo_mysql_stmt_next_rowset()
381 stmt->column_count = mysql_stmt_field_count(S->stmt); in pdo_mysql_stmt_next_rowset()
409 if (S->stmt) { in pdo_mysql_stmt_next_rowset()
633 if (S->stmt) { in pdo_mysql_stmt_fetch()
648 if (S->stmt) { in pdo_mysql_stmt_fetch()
749 if (S->stmt) { in pdo_mysql_stmt_get_col()
[all …]
/PHP-7.4/ext/mysqli/
H A Dmysqli_api.c374 MYSQLI_REPORT_STMT_ERROR(stmt->stmt); in PHP_FUNCTION()
413 col_type = (stmt->stmt->fields) ? stmt->stmt->fields[ofs].type : MYSQL_TYPE_STRING; in mysqli_stmt_bind_result_do_bind()
518 …(stmt->stmt->fields) ? (stmt->stmt->fields[ofs].length) ? stmt->stmt->fields[ofs].length + 1: 256:… in mysqli_stmt_bind_result_do_bind()
543 MYSQLI_REPORT_STMT_ERROR(stmt->stmt); in mysqli_stmt_bind_result_do_bind()
965 ret = mysql_stmt_fetch(stmt->stmt);
1875 stmt->stmt = NULL;
1898 if (!stmt->stmt) {
2069 stmt->stmt = NULL;
2127 mysql_stmt_free_result(stmt->stmt);
2177 if (mysql_stmt_reset(stmt->stmt)) {
[all …]
/PHP-7.4/ext/pdo_mysql/tests/
H A Dpdo_mysql_stmt_bindvalue.phpt27 $stmt->errorCode(), var_export($stmt->errorInfo(), true));
34 $stmt->errorCode(), var_export($stmt->errorInfo(), true));
38 $stmt->errorCode(), var_export($stmt->errorInfo(), true));
49 $stmt->errorCode(), var_export($stmt->errorInfo(), true));
56 $stmt->errorCode(), var_export($stmt->errorInfo(), true));
60 $stmt->errorCode(), var_export($stmt->errorInfo(), true));
73 $stmt->errorCode(), var_export($stmt->errorInfo(), true));
80 $stmt->errorCode(), var_export($stmt->errorInfo(), true));
84 $stmt->errorCode(), var_export($stmt->errorInfo(), true));
98 $stmt->errorCode(), var_export($stmt->errorInfo(), true));
[all …]
/PHP-7.4/ext/pdo_oci/tests/
H A Dpdo_oci_templob_1.phpt27 $stmt->execute();
28 $row = $stmt->fetch();
30 $stmt->execute();
33 $stmt->execute();
36 $stmt->execute();
39 $stmt->execute();
42 $stmt->execute();
45 $stmt->execute();
48 $stmt->execute();
51 $stmt->execute();
[all …]
/PHP-7.4/ext/pdo_dblib/tests/
H A Dbatch_stmt_rowcount.phpt14 $stmt = $db->query(
24 var_dump($stmt->rowCount());
25 var_dump($stmt->nextRowset());
28 var_dump($stmt->rowCount());
32 var_dump($stmt->rowCount());
36 var_dump($stmt->rowCount());
40 var_dump($stmt->rowCount());
44 var_dump($stmt->fetchAll());
45 var_dump($stmt->rowCount());
49 var_dump($stmt->rowCount());
[all …]
/PHP-7.4/ext/oci8/tests/
H A Dbind_long.phpt14 @oci_execute($stmt);
17 oci_execute($stmt);
26 oci_bind_by_name( $stmt, ":id", $i, -1);
28 oci_execute($stmt, OCI_DEFAULT);
32 oci_execute($stmt);
34 $row = oci_fetch_row($stmt);
44 oci_bind_by_name( $stmt, ":id", $i, -1);
46 oci_execute($stmt, OCI_DEFAULT);
50 oci_execute($stmt);
52 $row = oci_fetch_row($stmt);
[all …]

Completed in 115 milliseconds

12345678910>>...19