Searched refs:stmt (Results 1 - 25 of 58) sorted by relevance

123

/PHP_5_4/ext/pdo/
H A Dpdo.php11 $stmt = $x->prepare("INSERT INTO test (NAME, VALUE) VALUES (:name, :value)"); variable
13 $stmt->bindParam(":name", $the_name, PDO_PARAM_STR, 32);
14 $stmt->bindParam(":value", $the_value, PDO_PARAM_STR, 32);
20 if (!$stmt->execute()) {
25 $stmt = null; variable
47 $stmt = $x->prepare("select NAME, VALUE from test where value like ?"); variable
49 $stmt->execute(array($the_name)) or die("failed to execute!");
50 $stmt->bindColumn('VALUE', $value);
52 while ($row = $stmt->fetch()) {
H A Dpdo_stmt.c111 pdo_stmt_t *stmt = (pdo_stmt_t*)zend_object_store_get_object(getThis() TSRMLS_CC); \
112 if (!stmt->dbh) { \
122 static inline int rewrite_name_to_position(pdo_stmt_t *stmt, struct pdo_bound_param_data *param TSRMLS_DC) /* {{{ */ argument
124 if (stmt->bound_param_map) {
134 if (stmt->named_rewrite_template) {
140 if (SUCCESS == zend_hash_index_find(stmt->bound_param_map, param->paramno, (void**)&name)) {
145 pdo_raise_impl_error(stmt->dbh, stmt, "HY093", "parameter was not defined" TSRMLS_CC);
149 zend_hash_internal_pointer_reset(stmt->bound_param_map);
150 while (SUCCESS == zend_hash_get_current_data(stmt
171 dispatch_param_event(pdo_stmt_t *stmt, enum pdo_param_event event_type TSRMLS_DC) argument
263 get_lazy_object(pdo_stmt_t *stmt, zval *return_value TSRMLS_DC) argument
302 really_register_bound_param(struct pdo_bound_param_data *param, pdo_stmt_t *stmt, int is_param TSRMLS_DC) argument
546 fetch_value(pdo_stmt_t *stmt, zval *dest, int colno, int *type_override TSRMLS_DC) argument
689 do_fetch_common(pdo_stmt_t *stmt, enum pdo_fetch_orientation ori, long offset, int do_bind TSRMLS_DC) argument
791 make_callable_ex(pdo_stmt_t *stmt, zval *callable, zend_fcall_info * fci, zend_fcall_info_cache * fcc, int num_args TSRMLS_DC) argument
830 do_fetch_opt_finish(pdo_stmt_t *stmt, int free_ctor_agrs TSRMLS_DC) argument
853 do_fetch(pdo_stmt_t *stmt, int do_bind, zval *return_value, enum pdo_fetch_type how, enum pdo_fetch_orientation ori, long offset, zval *return_all TSRMLS_DC) argument
1243 pdo_stmt_verify_mode(pdo_stmt_t *stmt, long mode, int fetch_all TSRMLS_DC) argument
1582 register_bound_param(INTERNAL_FUNCTION_PARAMETERS, pdo_stmt_t *stmt, int is_param) argument
1773 generic_stmt_attr_get(pdo_stmt_t *stmt, zval *return_value, long attr) argument
1876 pdo_stmt_setup_fetch_mode(INTERNAL_FUNCTION_PARAMETERS, pdo_stmt_t *stmt, int skip) argument
2240 pdo_stmt_t * stmt = (pdo_stmt_t *) zend_object_store_get_object(object TSRMLS_CC); local
2253 pdo_stmt_t * stmt = (pdo_stmt_t *) zend_object_store_get_object(object TSRMLS_CC); local
2283 pdo_stmt_t *stmt = (pdo_stmt_t*)zend_object_store_get_object(object TSRMLS_CC); local
2319 pdo_stmt_t *stmt; local
2444 pdo_stmt_t *stmt; local
2462 pdo_stmt_t *stmt; member in struct:php_pdo_iterator
2527 pdo_stmt_t *stmt = I->stmt; /* for PDO_HANDLE_STMT_ERR() */ local
2551 pdo_stmt_t *stmt = (pdo_stmt_t*)zend_object_store_get_object(object TSRMLS_CC); local
2587 pdo_stmt_t * stmt = (pdo_stmt_t *) zend_object_store_get_object(object TSRMLS_CC); local
2640 pdo_stmt_t * stmt = (pdo_stmt_t *) zend_object_store_get_object(object TSRMLS_CC); local
2679 pdo_stmt_t * stmt = (pdo_stmt_t *) zend_object_store_get_object(object TSRMLS_CC); local
[all...]
H A Dphp_pdo_driver.h244 /* prepare a statement and stash driver specific portion into stmt */
245 typedef int (*pdo_dbh_prepare_func)(pdo_dbh_t *dbh, const char *sql, long sql_len, pdo_stmt_t *stmt, zval *driver_options TSRMLS_DC);
263 /* fetch error information. if stmt is not null, fetch information pertaining
269 typedef int (*pdo_dbh_fetch_error_func)(pdo_dbh_t *dbh, pdo_stmt_t *stmt, zval *info TSRMLS_DC);
284 /* for adding methods to the dbh or stmt objects
321 typedef int (*pdo_stmt_dtor_func)(pdo_stmt_t *stmt TSRMLS_DC);
324 typedef int (*pdo_stmt_execute_func)(pdo_stmt_t *stmt TSRMLS_DC);
328 * if the stmt represents a scrollable cursor */
329 typedef int (*pdo_stmt_fetch_func)(pdo_stmt_t *stmt,
333 * Driver should populate stmt
538 pdo_stmt_t *stmt; /* for convenience in dtor */ member in struct:pdo_bound_param_data
[all...]
H A Dphp_pdo_int.h42 void pdo_dbstmt_free_storage(pdo_stmt_t *stmt TSRMLS_DC);
45 int pdo_stmt_describe_columns(pdo_stmt_t *stmt TSRMLS_DC);
46 int pdo_stmt_setup_fetch_mode(INTERNAL_FUNCTION_PARAMETERS, pdo_stmt_t *stmt, int skip_first_arg);
51 void pdo_row_free_storage(pdo_stmt_t *stmt TSRMLS_DC);
58 extern void pdo_handle_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt TSRMLS_DC);
67 #define PDO_STMT_CLEAR_ERR() strcpy(stmt->error_code, PDO_ERR_NONE)
69 #define PDO_HANDLE_STMT_ERR() if (strcmp(stmt->error_code, PDO_ERR_NONE)) { pdo_handle_error(stmt->dbh, stmt TSRMLS_CC); }
H A Dpdo_sql_parser.re79 PDO_API int pdo_parse_params(pdo_stmt_t *stmt, char *inquery, int inquery_len,
134 pdo_raise_impl_error(stmt->dbh, stmt, "HY093", "mixed named and positional parameters" TSRMLS_CC);
139 if (stmt->supports_placeholders == query_type && !stmt->named_rewrite_template) {
145 if (stmt->named_rewrite_template) {
154 params = stmt->bound_params;
157 if (bindno && !params && stmt->supports_placeholders == PDO_PLACEHOLDER_NONE) {
158 pdo_raise_impl_error(stmt->dbh, stmt, "HY09
[all...]
/PHP_5_4/ext/oci8/tests/
H A Dconn_attr.inc32 foreach ($stmtarray as $stmt) {
33 $s = oci_parse($c, $stmt);
44 echo "Error:" . $stmt . PHP_EOL . $m['message'] . PHP_EOL;
147 foreach ($stmtarray as $stmt) {
148 $s = oci_parse($c, $stmt);
/PHP_5_4/ext/pdo_dblib/
H A Ddblib_stmt.c98 static int pdo_dblib_stmt_cursor_closer(pdo_stmt_t *stmt TSRMLS_DC)
100 pdo_dblib_stmt *S = (pdo_dblib_stmt*)stmt->driver_data;
106 efree(stmt->columns);
107 stmt->columns = NULL;
112 static int pdo_dblib_stmt_dtor(pdo_stmt_t *stmt TSRMLS_DC)
114 pdo_dblib_stmt *S = (pdo_dblib_stmt*)stmt->driver_data;
116 efree(stmt->columns);
117 stmt->columns = NULL;
124 static int pdo_dblib_stmt_next_rowset(pdo_stmt_t *stmt TSRMLS_DC)
126 pdo_dblib_stmt *S = (pdo_dblib_stmt*)stmt
173 pdo_dblib_stmt_fetch(pdo_stmt_t *stmt, enum pdo_fetch_orientation ori, long offset TSRMLS_DC) argument
196 pdo_dblib_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC) argument
215 pdo_dblib_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsigned long *len, int *caller_frees TSRMLS_DC) argument
284 pdo_dblib_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *param, enum pdo_param_event event_type TSRMLS_DC) argument
290 pdo_dblib_stmt_get_column_meta(pdo_stmt_t *stmt, long colno, zval *return_value TSRMLS_DC) argument
[all...]
/PHP_5_4/ext/pdo_mysql/
H A Dmysql_driver.c46 int _pdo_mysql_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, const char *file, int line TSRMLS_DC) argument
55 if (stmt) {
56 S = (pdo_mysql_stmt*)stmt->driver_data;
57 pdo_err = &stmt->error_code;
64 if (S && S->stmt) {
65 einfo->errcode = mysql_stmt_errno(S->stmt);
100 if (S && S->stmt) {
101 strcpy(*pdo_err, mysql_stmt_sqlstate(S->stmt));
117 static int pdo_mysql_fetch_error_func(pdo_dbh_t *dbh, pdo_stmt_t *stmt, zval *info TSRMLS_DC) argument
123 PDO_DBG_INF_FMT("dbh=%p stmt
164 mysql_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, pdo_stmt_t *stmt, zval *driver_options TSRMLS_DC) argument
[all...]
H A Dmysql_statement.c36 # define pdo_mysql_stmt_execute_prepared(stmt) pdo_mysql_stmt_execute_prepared_mysqlnd(stmt TSRMLS_CC)
38 # define pdo_mysql_stmt_close(stmt) mysqlnd_stmt_close(stmt, 0)
40 # define pdo_mysql_stmt_execute_prepared(stmt) pdo_mysql_stmt_execute_prepared_libmysql(stmt TSRMLS_CC)
42 # define pdo_mysql_stmt_close(stmt) mysql_stmt_close(stmt)
47 static int pdo_mysql_stmt_dtor(pdo_stmt_t *stmt TSRMLS_DC) /* {{{ */
49 pdo_mysql_stmt *S = (pdo_mysql_stmt*)stmt
449 pdo_mysql_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *param, enum pdo_param_event event_type TSRMLS_DC) argument
590 pdo_mysql_stmt_fetch(pdo_stmt_t *stmt, enum pdo_fetch_orientation ori, long offset TSRMLS_DC) argument
654 pdo_mysql_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC) argument
705 pdo_mysql_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsigned long *len, int *caller_frees TSRMLS_DC) argument
806 pdo_mysql_stmt_col_meta(pdo_stmt_t *stmt, long colno, zval *return_value TSRMLS_DC) argument
[all...]
/PHP_5_4/ext/pdo_oci/
H A Doci_driver.c36 static int pdo_oci_fetch_error_func(pdo_dbh_t *dbh, pdo_stmt_t *stmt, zval *info TSRMLS_DC) /* {{{ */ argument
43 if (stmt) {
44 pdo_oci_stmt *S = (pdo_oci_stmt*)stmt->driver_data;
60 ub4 _oci_error(OCIError *err, pdo_dbh_t *dbh, pdo_stmt_t *stmt, char *what, sword status, int isinit, const char *file, int line TSRMLS_DC) /* {{{ */ argument
69 if (stmt) {
70 S = (pdo_oci_stmt*)stmt->driver_data;
72 pdo_err = &stmt->error_code;
176 if (stmt) {
185 strcpy(dbh->error_code, stmt->error_code);
251 static int oci_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, pdo_stmt_t *stmt, zva argument
330 OCIStmt *stmt; local
[all...]
H A Doci_statement.c39 S->last_err = _oci_error(S->err, stmt->dbh, stmt, #name, S->last_err, FALSE, __FILE__, __LINE__ TSRMLS_CC); \
48 S->last_err = _oci_error(S->err, stmt->dbh, stmt, #name ": " #msg, S->last_err, FALSE, __FILE__, __LINE__ TSRMLS_CC); \
54 static php_stream *oci_create_lob_stream(pdo_stmt_t *stmt, OCILobLocator *lob TSRMLS_DC);
56 static int oci_stmt_dtor(pdo_stmt_t *stmt TSRMLS_DC) /* {{{ */
58 pdo_oci_stmt *S = (pdo_oci_stmt*)stmt->driver_data;
59 HashTable *BC = stmt->bound_columns;
60 HashTable *BP = stmt->bound_params;
64 if (S->stmt) {
261 oci_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *param, enum pdo_param_event event_type TSRMLS_DC) argument
440 oci_stmt_fetch(pdo_stmt_t *stmt, enum pdo_fetch_orientation ori, long offset TSRMLS_DC) argument
504 oci_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC) argument
608 pdo_stmt_t *stmt; member in struct:oci_lob_self
659 pdo_stmt_t *stmt = self->stmt; local
701 oci_create_lob_stream(pdo_stmt_t *stmt, OCILobLocator *lob TSRMLS_DC) argument
721 oci_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsigned long *len, int *caller_frees TSRMLS_DC) argument
[all...]
H A Dphp_pdo_oci_int.h62 OCIStmt *stmt; member in struct:__anon169
89 ub4 _oci_error(OCIError *err, pdo_dbh_t *dbh, pdo_stmt_t *stmt, char *what, sword status, int isinit, const char *file, int line TSRMLS_DC);
92 #define oci_stmt_error(w) _oci_error(S->err, stmt->dbh, stmt, w, S->last_err, FALSE, __FILE__, __LINE__ TSRMLS_CC)
/PHP_5_4/ext/pdo_odbc/
H A Dodbc_driver.c34 static int pdo_odbc_fetch_error_func(pdo_dbh_t *dbh, pdo_stmt_t *stmt, zval *info TSRMLS_DC) argument
41 if (stmt) {
42 S = (pdo_odbc_stmt*)stmt->driver_data;
59 void pdo_odbc_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, PDO_ODBC_HSTMT statement, char *what, const char *file, int line TSRMLS_DC) /* {{{ */ argument
70 if (stmt) {
71 S = (pdo_odbc_stmt*)stmt->driver_data;
74 pdo_err = &stmt->error_code;
78 statement = S->stmt;
145 static int odbc_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, pdo_stmt_t *stmt, zval *driver_options TSRMLS_DC) argument
160 stmt
228 PDO_ODBC_HSTMT stmt; local
[all...]
H A Dodbc_stmt.c60 static int pdo_odbc_utf82ucs2(pdo_stmt_t *stmt, int is_unicode, const char *buf, argument
65 pdo_odbc_stmt *S = (pdo_odbc_stmt*)stmt->driver_data;
95 static int pdo_odbc_ucs22utf8(pdo_stmt_t *stmt, int is_unicode, const char *buf, argument
100 pdo_odbc_stmt *S = (pdo_odbc_stmt*)stmt->driver_data;
126 static void free_cols(pdo_stmt_t *stmt, pdo_odbc_stmt *S TSRMLS_DC) argument
131 for (i = 0; i < stmt->column_count; i++) {
141 static int odbc_stmt_dtor(pdo_stmt_t *stmt TSRMLS_DC)
143 pdo_odbc_stmt *S = (pdo_odbc_stmt*)stmt->driver_data;
145 if (S->stmt != SQL_NULL_HANDLE) {
146 if (stmt
276 odbc_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *param, enum pdo_param_event event_type TSRMLS_DC) argument
510 odbc_stmt_fetch(pdo_stmt_t *stmt, enum pdo_fetch_orientation ori, long offset TSRMLS_DC) argument
548 odbc_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC) argument
615 odbc_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsigned long *len, int *caller_frees TSRMLS_DC) argument
742 odbc_stmt_set_param(pdo_stmt_t *stmt, long attr, zval *val TSRMLS_DC) argument
769 odbc_stmt_get_attr(pdo_stmt_t *stmt, long attr, zval *val TSRMLS_DC) argument
[all...]
/PHP_5_4/ext/pdo_pgsql/
H A Dpgsql_statement.c47 static int pgsql_stmt_dtor(pdo_stmt_t *stmt TSRMLS_DC)
49 pdo_pgsql_stmt *S = (pdo_pgsql_stmt*)stmt->driver_data;
114 stmt->driver_data = NULL;
118 static int pgsql_stmt_execute(pdo_stmt_t *stmt TSRMLS_DC)
120 pdo_pgsql_stmt *S = (pdo_pgsql_stmt*)stmt->driver_data;
141 spprintf(&q, 0, "DECLARE %s SCROLL CURSOR WITH HOLD FOR %s", S->cursor_name, stmt->active_query_string);
148 pdo_pgsql_error_stmt(stmt, status, pdo_pgsql_sqlstate(S->result));
169 stmt->bound_params ? zend_hash_num_elements(stmt->bound_params) : 0,
197 pdo_pgsql_error_stmt(stmt, statu
238 pgsql_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *param, enum pdo_param_event event_type TSRMLS_DC) argument
382 pgsql_stmt_fetch(pdo_stmt_t *stmt, enum pdo_fetch_orientation ori, long offset TSRMLS_DC) argument
430 pgsql_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC) argument
492 pgsql_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsigned long *len, int *caller_frees TSRMLS_DC) argument
571 pgsql_stmt_get_column_meta(pdo_stmt_t *stmt, long colno, zval *return_value TSRMLS_DC) argument
[all...]
/PHP_5_4/ext/pdo_sqlite/
H A Dphp_pdo_sqlite_int.h66 sqlite3_stmt *stmt; member in struct:__anon185
73 extern int _pdo_sqlite_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, const char *file, int line TSRMLS_DC);
75 #define pdo_sqlite_error_stmt(s) _pdo_sqlite_error(stmt->dbh, stmt, __FILE__, __LINE__ TSRMLS_CC)
H A Dsqlite_statement.c34 static int pdo_sqlite_stmt_dtor(pdo_stmt_t *stmt TSRMLS_DC)
36 pdo_sqlite_stmt *S = (pdo_sqlite_stmt*)stmt->driver_data;
38 if (S->stmt) {
39 sqlite3_finalize(S->stmt);
40 S->stmt = NULL;
46 static int pdo_sqlite_stmt_execute(pdo_stmt_t *stmt TSRMLS_DC)
48 pdo_sqlite_stmt *S = (pdo_sqlite_stmt*)stmt->driver_data;
50 if (stmt->executed && !S->done) {
51 sqlite3_reset(S->stmt);
55 switch (sqlite3_step(S->stmt)) {
78 pdo_sqlite_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *param, enum pdo_param_event event_type TSRMLS_DC) argument
187 pdo_sqlite_stmt_fetch(pdo_stmt_t *stmt, enum pdo_fetch_orientation ori, long offset TSRMLS_DC) argument
220 pdo_sqlite_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC) argument
249 pdo_sqlite_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsigned long *len, int *caller_frees TSRMLS_DC) argument
278 pdo_sqlite_stmt_col_meta(pdo_stmt_t *stmt, long colno, zval *return_value TSRMLS_DC) argument
[all...]
/PHP_5_4/ext/mysqli/
H A Dmysqli_priv.h67 extern void php_clear_stmt_bind(MY_STMT *stmt TSRMLS_DC);
145 #define MYSQLI_REPORT_STMT_ERROR(stmt) \
146 if ((MyG(report_mode) & MYSQLI_REPORT_ERROR) && mysql_stmt_errno(stmt)) { \
147 php_mysqli_report_error(mysql_stmt_sqlstate(stmt), mysql_stmt_errno(stmt), mysql_stmt_error(stmt) TSRMLS_CC); \
H A Dmysqli_api.c82 int mysqli_stmt_bind_param_do_bind(MY_STMT *stmt, unsigned int argc, unsigned int num_vars, argument
90 if (stmt->param.var_cnt) {
91 php_free_stmt_bind_buffer(stmt->param, FETCH_SIMPLE);
94 stmt->param.is_null = ecalloc(num_vars, sizeof(char));
105 bind[ofs].is_null = &stmt->param.is_null[ofs];
115 bind[ofs].is_null = &stmt->param.is_null[ofs];
126 bind[ofs].is_null = &stmt->param.is_null[ofs];
136 rc = mysql_stmt_bind_param(stmt->stmt, bind);
140 efree(stmt
159 mysqli_stmt_bind_param_do_bind(MY_STMT *stmt, unsigned int argc, unsigned int num_vars, zval ***args, unsigned int start, const char * const types TSRMLS_DC) argument
219 MY_STMT *stmt; local
283 mysqli_stmt_bind_result_do_bind(MY_STMT *stmt, zval ***args, unsigned int argc, unsigned int start TSRMLS_DC) argument
456 mysqli_stmt_bind_result_do_bind(MY_STMT *stmt, zval ***args, unsigned int argc, unsigned int start TSRMLS_DC) argument
479 MY_STMT *stmt; local
764 MY_STMT *stmt; local
857 MY_STMT *stmt; local
1018 MY_STMT *stmt; local
1559 MY_STMT *stmt; local
1575 MY_STMT *stmt; local
1781 MY_STMT *stmt; local
1942 MY_STMT *stmt; local
1969 MY_STMT *stmt; local
1990 MY_STMT *stmt; local
2010 MY_STMT *stmt; local
2032 MY_STMT *stmt; local
2048 MY_STMT *stmt; local
2065 MY_STMT *stmt; local
2082 MY_STMT *stmt; local
2098 MY_STMT *stmt; local
2118 MY_STMT *stmt; local
2252 MY_STMT *stmt; local
2299 MY_STMT *stmt; local
2326 MY_STMT *stmt; local
2342 MY_STMT *stmt; local
2360 MY_STMT *stmt; local
2392 MY_STMT *stmt; local
2416 MY_STMT *stmt; local
2442 MY_STMT *stmt; local
2491 MY_STMT *stmt; local
[all...]
/PHP_5_4/ext/mysqlnd/
H A Dmysqlnd.h169 #define mysqlnd_stmt_insert_id(stmt) (stmt)->m->get_last_insert_id((stmt) TSRMLS_CC)
170 #define mysqlnd_stmt_affected_rows(stmt) (stmt)->m->get_affected_rows((stmt) TSRMLS_CC)
171 #define mysqlnd_stmt_num_rows(stmt) (stmt)->m->get_num_rows((stmt) TSRMLS_CC)
172 #define mysqlnd_stmt_param_count(stmt) (stm
[all...]
H A Dmysqlnd_driver.c197 MYSQLND_STMT_DATA * stmt = NULL; local
207 stmt = ret->data = mnd_pecalloc(1, sizeof(MYSQLND_STMT_DATA), conn->persistent);
208 DBG_INF_FMT("stmt=%p", stmt);
209 if (!stmt) {
212 stmt->persistent = conn->persistent;
213 stmt->error_info = &(stmt->error_info_impl);
214 stmt->upsert_status = &(stmt
[all...]
H A Dmysqlnd_result.h28 enum_func_status mysqlnd_query_read_result_set_header(MYSQLND_CONN_DATA * conn, MYSQLND_STMT * stmt TSRMLS_DC);
H A Dmysqlnd_ps.c50 static void mysqlnd_stmt_separate_result_bind(MYSQLND_STMT * const stmt TSRMLS_DC);
51 static void mysqlnd_stmt_separate_one_result_bind(MYSQLND_STMT * const stmt, unsigned int param_no TSRMLS_DC);
59 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
65 if (!stmt || !stmt->conn || !stmt->result) {
68 DBG_INF_FMT("stmt=%lu", stmt->stmt_id);
70 conn = stmt->conn;
73 if (!stmt
129 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
199 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
213 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
243 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
280 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
323 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
362 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
475 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
584 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
715 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
814 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
942 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
989 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1134 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1188 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1241 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1280 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1391 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1462 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1518 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1547 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1601 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1652 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1662 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1672 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1682 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1692 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1702 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1712 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1722 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1732 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1742 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1752 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1762 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1775 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1838 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1893 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1924 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1978 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
2034 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
2084 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
2115 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
2153 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
2238 MYSQLND_STMT_DATA * stmt = (s != NULL) ? s->data:NULL; local
2264 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
2278 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
2292 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
2304 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
[all...]
H A Dmysqlnd_ps_codec.c631 MYSQLND_STMT_DATA * stmt = s->data; local
644 unsigned int null_count = (stmt->param_count + 7) / 8;
652 SET_OOM_ERROR(*stmt->error_info);
673 check if need to send the types even if stmt->send_types_to_server is 0. This is because
679 for (i = 0; i < stmt->param_count; i++) {
680 short current_type = stmt->param_bind[i].type;
681 if (Z_TYPE_P(stmt->param_bind[i].zv) != IS_NULL && (current_type == MYSQL_TYPE_LONG || current_type == MYSQL_TYPE_LONGLONG)) {
683 if (Z_TYPE_P(stmt->param_bind[i].zv) != IS_LONG &&
684 PASS != mysqlnd_stmt_copy_it(&copies, stmt->param_bind[i].zv, stmt
975 MYSQLND_STMT_DATA * stmt = s->data; local
[all...]
/PHP_5_4/ext/pdo_firebird/
H A Dfirebird_statement.c33 #define RECORD_ERROR(stmt) _firebird_error(NULL, stmt, __FILE__, __LINE__ TSRMLS_CC)
51 static int firebird_stmt_dtor(pdo_stmt_t *stmt TSRMLS_DC) /* {{{ */
53 pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data;
57 if (isc_dsql_free_statement(S->H->isc_status, &S->stmt, DSQL_drop)) {
58 RECORD_ERROR(stmt);
87 static int firebird_stmt_execute(pdo_stmt_t *stmt TSRMLS_DC) /* {{{ */
89 pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data;
97 if ((*S->name || S->cursor_open) && isc_dsql_free_statement(H->isc_status, &S->stmt, DSQL_close)) {
103 if (isc_dsql_execute(H->isc_status, &H->tr, &S->stmt, PDO_FB_SQLDA_VERSIO
155 firebird_stmt_fetch(pdo_stmt_t *stmt, enum pdo_fetch_orientation ori, long offset TSRMLS_DC) argument
183 firebird_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC) argument
221 firebird_fetch_blob(pdo_stmt_t *stmt, int colno, char **ptr, unsigned long *len, ISC_QUAD *blob_id TSRMLS_DC) argument
298 firebird_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsigned long *len, int *caller_frees TSRMLS_DC) argument
411 firebird_bind_blob(pdo_stmt_t *stmt, ISC_QUAD *blob_id, zval *param TSRMLS_DC) argument
450 firebird_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *param, enum pdo_param_event event_type TSRMLS_DC) argument
633 firebird_stmt_set_attribute(pdo_stmt_t *stmt, long attr, zval *val TSRMLS_DC) argument
654 firebird_stmt_get_attribute(pdo_stmt_t *stmt, long attr, zval *val TSRMLS_DC) argument
[all...]

Completed in 33 milliseconds

123