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

123

/PHP_5_3/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_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...]
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
1591 register_bound_param(INTERNAL_FUNCTION_PARAMETERS, pdo_stmt_t *stmt, int is_param) argument
1782 generic_stmt_attr_get(pdo_stmt_t *stmt, zval *return_value, long attr) argument
1885 pdo_stmt_setup_fetch_mode(INTERNAL_FUNCTION_PARAMETERS, pdo_stmt_t *stmt, int skip) argument
2249 pdo_stmt_t * stmt = (pdo_stmt_t *) zend_object_store_get_object(object TSRMLS_CC); local
2262 pdo_stmt_t * stmt = (pdo_stmt_t *) zend_object_store_get_object(object TSRMLS_CC); local
2292 pdo_stmt_t *stmt = (pdo_stmt_t*)zend_object_store_get_object(object TSRMLS_CC); local
2329 pdo_stmt_t *stmt; local
2462 pdo_stmt_t *stmt; local
2482 pdo_stmt_t *stmt; member in struct:php_pdo_iterator
2547 pdo_stmt_t *stmt = I->stmt; /* for PDO_HANDLE_STMT_ERR() */ local
2571 pdo_stmt_t *stmt = (pdo_stmt_t*)zend_object_store_get_object(object TSRMLS_CC); local
2607 pdo_stmt_t * stmt = (pdo_stmt_t *) zend_object_store_get_object(object TSRMLS_CC); local
2650 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
320 typedef int (*pdo_stmt_dtor_func)(pdo_stmt_t *stmt TSRMLS_DC);
323 typedef int (*pdo_stmt_execute_func)(pdo_stmt_t *stmt TSRMLS_DC);
327 * if the stmt represents a scrollable cursor */
328 typedef int (*pdo_stmt_fetch_func)(pdo_stmt_t *stmt,
332 * Driver should populate stmt
540 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); }
/PHP_5_3/ext/pdo_dblib/
H A Ddb.php14 $stmt = $db->prepare('select 10'); variable
15 debug_zval_dump($stmt);
17 $x = $stmt->execute();
20 while (($r = $stmt->fetch())) {
28 $stmt = null; variable
H A Ddblib_driver.c35 static int dblib_fetch_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, zval *info TSRMLS_DC) argument
43 if (stmt) {
44 S = (pdo_dblib_stmt*)stmt->driver_data;
58 msg, einfo->dberr, einfo->severity, stmt ? stmt->active_query_string : "");
91 static int dblib_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, pdo_stmt_t *stmt, zval *driver_options TSRMLS_DC) argument
97 stmt->driver_data = S;
98 stmt->methods = &dblib_stmt_methods;
99 stmt->supports_placeholders = PDO_PLACEHOLDER_NONE;
100 S->err.sqlstate = stmt
[all...]
H A Ddblib_stmt.c54 static int pdo_dblib_stmt_dtor(pdo_stmt_t *stmt TSRMLS_DC)
56 pdo_dblib_stmt *S = (pdo_dblib_stmt*)stmt->driver_data;
69 static int pdo_dblib_stmt_execute(pdo_stmt_t *stmt TSRMLS_DC)
71 pdo_dblib_stmt *S = (pdo_dblib_stmt*)stmt->driver_data;
85 if (FAIL == dbcmd(H->link, stmt->active_query_string)) {
99 stmt->row_count = DBCOUNT(H->link);
113 stmt->column_count = S->ncols;
236 static int pdo_dblib_stmt_fetch(pdo_stmt_t *stmt, argument
239 pdo_dblib_stmt *S = (pdo_dblib_stmt*)stmt->driver_data;
252 static int pdo_dblib_stmt_describe(pdo_stmt_t *stmt, in argument
269 pdo_dblib_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsigned long *len, int *caller_frees TSRMLS_DC) argument
280 pdo_dblib_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *param, enum pdo_param_event event_type TSRMLS_DC) argument
[all...]
/PHP_5_3/ext/mysqli/
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
760 MY_STMT *stmt; local
853 MY_STMT *stmt; local
1014 MY_STMT *stmt; local
1552 MY_STMT *stmt; local
1568 MY_STMT *stmt; local
1771 MY_STMT *stmt; local
1928 MY_STMT *stmt; local
1955 MY_STMT *stmt; local
1976 MY_STMT *stmt; local
1996 MY_STMT *stmt; local
2018 MY_STMT *stmt; local
2034 MY_STMT *stmt; local
2051 MY_STMT *stmt; local
2068 MY_STMT *stmt; local
2084 MY_STMT *stmt; local
2104 MY_STMT *stmt; local
2238 MY_STMT *stmt; local
2285 MY_STMT *stmt; local
2312 MY_STMT *stmt; local
2328 MY_STMT *stmt; local
2346 MY_STMT *stmt; local
2374 MY_STMT *stmt; local
2398 MY_STMT *stmt; local
2424 MY_STMT *stmt; local
2473 MY_STMT *stmt; local
[all...]
H A Dmysqli_priv.h67 extern void php_clear_stmt_bind(MY_STMT *stmt TSRMLS_DC);
147 #define MYSQLI_REPORT_STMT_ERROR(stmt) \
148 if ((MyG(report_mode) & MYSQLI_REPORT_ERROR) && mysql_stmt_errno(stmt)) { \
149 php_mysqli_report_error(mysql_stmt_sqlstate(stmt), mysql_stmt_errno(stmt), mysql_stmt_error(stmt) TSRMLS_CC); \
/PHP_5_3/ext/pdo_mysql/
H A Dmysql_driver.c57 int _pdo_mysql_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, const char *file, int line TSRMLS_DC) argument
66 if (stmt) {
67 S = (pdo_mysql_stmt*)stmt->driver_data;
68 pdo_err = &stmt->error_code;
76 if (S && S->stmt) {
77 einfo->errcode = mysql_stmt_errno(S->stmt);
117 if (S && S->stmt) {
118 strcpy(*pdo_err, mysql_stmt_sqlstate(S->stmt));
139 static int pdo_mysql_fetch_error_func(pdo_dbh_t *dbh, pdo_stmt_t *stmt, zval *info TSRMLS_DC) argument
145 PDO_DBG_INF_FMT("dbh=%p stmt
186 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
469 pdo_mysql_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *param, enum pdo_param_event event_type TSRMLS_DC) argument
611 pdo_mysql_stmt_fetch(pdo_stmt_t *stmt, enum pdo_fetch_orientation ori, long offset TSRMLS_DC) argument
677 pdo_mysql_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC) argument
728 pdo_mysql_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsigned long *len, int *caller_frees TSRMLS_DC) argument
829 pdo_mysql_stmt_col_meta(pdo_stmt_t *stmt, long colno, zval *return_value TSRMLS_DC) argument
[all...]
/PHP_5_3/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);
249 static int oci_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, pdo_stmt_t *stmt, zva argument
328 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
434 oci_stmt_fetch(pdo_stmt_t *stmt, enum pdo_fetch_orientation ori, long offset TSRMLS_DC) argument
498 oci_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC) argument
602 pdo_stmt_t *stmt; member in struct:oci_lob_self
653 pdo_stmt_t *stmt = self->stmt; local
696 oci_create_lob_stream(pdo_stmt_t *stmt, OCILobLocator *lob TSRMLS_DC) argument
716 oci_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsigned long *len, int *caller_frees TSRMLS_DC) argument
[all...]
/PHP_5_3/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
504 odbc_stmt_fetch(pdo_stmt_t *stmt, enum pdo_fetch_orientation ori, long offset TSRMLS_DC) argument
542 odbc_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC) argument
609 odbc_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsigned long *len, int *caller_frees TSRMLS_DC) argument
737 odbc_stmt_set_param(pdo_stmt_t *stmt, long attr, zval *val TSRMLS_DC) argument
764 odbc_stmt_get_attr(pdo_stmt_t *stmt, long attr, zval *val TSRMLS_DC) argument
[all...]
/PHP_5_3/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_3/ext/pdo_sqlite/
H A Dphp_pdo_sqlite_int.h66 sqlite3_stmt *stmt; member in struct:__anon159
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
181 pdo_sqlite_stmt_fetch(pdo_stmt_t *stmt, enum pdo_fetch_orientation ori, long offset TSRMLS_DC) argument
214 pdo_sqlite_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC) argument
243 pdo_sqlite_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsigned long *len, int *caller_frees TSRMLS_DC) argument
272 pdo_sqlite_stmt_col_meta(pdo_stmt_t *stmt, long colno, zval *return_value TSRMLS_DC) argument
[all...]
/PHP_5_3/ext/sqlite/
H A Dpdo_sqlite2.c57 extern int _pdo_sqlite2_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, char *errmsg, const char *file, int line TSRMLS_DC);
59 #define pdo_sqlite2_error_stmt(msg, s) _pdo_sqlite2_error(stmt->dbh, stmt, msg, __FILE__, __LINE__ TSRMLS_CC)
63 static int pdo_sqlite2_stmt_dtor(pdo_stmt_t *stmt TSRMLS_DC)
65 pdo_sqlite2_stmt *S = (pdo_sqlite2_stmt*)stmt->driver_data;
76 pefree(S->einfo.errmsg, stmt->dbh->is_persistent);
82 static int pdo_sqlite2_stmt_execute(pdo_stmt_t *stmt TSRMLS_DC)
84 pdo_sqlite2_stmt *S = (pdo_sqlite2_stmt*)stmt->driver_data;
88 if (stmt->executed && !S->done) {
90 pdo_sqlite2_error_stmt(errmsg, stmt);
128 pdo_sqlite2_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *param, enum pdo_param_event event_type TSRMLS_DC) argument
134 pdo_sqlite2_stmt_fetch(pdo_stmt_t *stmt, enum pdo_fetch_orientation ori, long offset TSRMLS_DC) argument
171 pdo_sqlite2_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC) argument
190 pdo_sqlite2_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsigned long *len, int *caller_frees TSRMLS_DC) argument
232 _pdo_sqlite2_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, char *errmsg, const char *file, int line TSRMLS_DC) argument
299 pdo_sqlite2_fetch_error_func(pdo_dbh_t *dbh, pdo_stmt_t *stmt, zval *info TSRMLS_DC) argument
340 sqlite2_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, pdo_stmt_t *stmt, zval *driver_options TSRMLS_DC) argument
[all...]
/PHP_5_3/ext/mysqlnd/
H A Dmysqlnd.h79 PHPAPI void ** _mysqlnd_plugin_get_plugin_stmt_data(const MYSQLND_STMT * stmt, unsigned int plugin_id TSRMLS_DC);
181 #define mysqlnd_stmt_insert_id(stmt) (stmt)->m->get_last_insert_id((stmt) TSRMLS_CC)
182 #define mysqlnd_stmt_affected_rows(stmt) (stmt)->m->get_affected_rows((stmt) TSRMLS_CC)
183 #define mysqlnd_stmt_num_rows(stmt) (stmt)->m->get_num_rows((stmt) TSRMLS_C
[all...]
H A Dmysqlnd_ps_codec.c603 MYSQLND_STMT_DATA * stmt = s->data; local
616 unsigned int null_count = (stmt->param_count + 7) / 8;
624 SET_OOM_ERROR(stmt->error_info);
644 check if need to send the types even if stmt->send_types_to_server is 0. This is because
650 for (i = 0; i < stmt->param_count; i++) {
651 if (Z_TYPE_P(stmt->param_bind[i].zv) != IS_NULL &&
652 (stmt->param_bind[i].type == MYSQL_TYPE_LONG || stmt->param_bind[i].type == MYSQL_TYPE_LONGLONG))
655 if (Z_TYPE_P(stmt->param_bind[i].zv) != IS_LONG &&
656 PASS != mysqlnd_stmt_copy_it(&copies, stmt
927 MYSQLND_STMT_DATA * stmt = s->data; local
[all...]
H A Dmysqlnd_result.h29 enum_func_status mysqlnd_query_read_result_set_header(MYSQLND * conn, MYSQLND_STMT * stmt TSRMLS_DC);
H A Dmysqlnd_ps.c52 static void mysqlnd_stmt_separate_result_bind(MYSQLND_STMT * const stmt TSRMLS_DC);
53 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
66 if (!stmt || !stmt->conn || !stmt->result) {
69 DBG_INF_FMT("stmt=%lu", stmt->stmt_id);
71 conn = stmt->conn;
74 if (!stmt
129 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
199 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
214 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
245 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
282 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
324 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
363 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
475 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
583 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
732 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
832 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
961 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1009 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1156 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1210 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1280 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1392 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1464 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1521 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1551 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1605 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1656 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1666 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1676 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1686 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1696 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1706 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1716 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1726 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1736 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1746 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1756 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1766 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1779 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1842 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1897 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1927 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1981 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
2038 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
2089 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
2138 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
2224 MYSQLND_STMT_DATA * stmt = (s != NULL) ? s->data:NULL; local
2251 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
2265 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
2279 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
2291 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
2357 MYSQLND_STMT_DATA * stmt = NULL; variable
2402 _mysqlnd_plugin_get_plugin_stmt_data(const MYSQLND_STMT * stmt, unsigned int plugin_id TSRMLS_DC) argument
[all...]
/PHP_5_3/ext/pdo_firebird/
H A Dfirebird_statement.c35 #define RECORD_ERROR(stmt) _firebird_error(NULL, stmt, __FILE__, __LINE__ TSRMLS_CC)
53 static int firebird_stmt_dtor(pdo_stmt_t *stmt TSRMLS_DC) /* {{{ */
55 pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data;
59 if (isc_dsql_free_statement(S->H->isc_status, &S->stmt, DSQL_drop)) {
60 RECORD_ERROR(stmt);
89 static int firebird_stmt_execute(pdo_stmt_t *stmt TSRMLS_DC) /* {{{ */
91 pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data;
99 if ((*S->name || S->cursor_open) && isc_dsql_free_statement(H->isc_status, &S->stmt, DSQL_close)) {
105 if (isc_dsql_execute(H->isc_status, &H->tr, &S->stmt, PDO_FB_SQLDA_VERSIO
157 firebird_stmt_fetch(pdo_stmt_t *stmt, enum pdo_fetch_orientation ori, long offset TSRMLS_DC) argument
185 firebird_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC) argument
223 firebird_fetch_blob(pdo_stmt_t *stmt, int colno, char **ptr, unsigned long *len, ISC_QUAD *blob_id TSRMLS_DC) argument
300 firebird_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsigned long *len, int *caller_frees TSRMLS_DC) argument
413 firebird_bind_blob(pdo_stmt_t *stmt, ISC_QUAD *blob_id, zval *param TSRMLS_DC) argument
452 firebird_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *param, enum pdo_param_event event_type TSRMLS_DC) argument
635 firebird_stmt_set_attribute(pdo_stmt_t *stmt, long attr, zval *val TSRMLS_DC) argument
656 firebird_stmt_get_attribute(pdo_stmt_t *stmt, long attr, zval *val TSRMLS_DC) argument
[all...]

Completed in 33 milliseconds

123