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

123

/PHP_5_6/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 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_error.h26 PDO_API void pdo_handle_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt TSRMLS_DC);
35 #define PDO_STMT_CLEAR_ERR() strcpy(stmt->error_code, PDO_ERR_NONE)
37 #define PDO_HANDLE_STMT_ERR() if (strcmp(stmt->error_code, PDO_ERR_NONE)) { pdo_handle_error(stmt->dbh, stmt TSRMLS_CC); }
H A Dphp_pdo_int.h44 void pdo_dbstmt_free_storage(pdo_stmt_t *stmt TSRMLS_DC);
47 int pdo_stmt_describe_columns(pdo_stmt_t *stmt TSRMLS_DC);
48 int pdo_stmt_setup_fetch_mode(INTERNAL_FUNCTION_PARAMETERS, pdo_stmt_t *stmt, int skip_first_arg);
53 void pdo_row_free_storage(pdo_stmt_t *stmt TSRMLS_DC);
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
779 make_callable_ex(pdo_stmt_t *stmt, zval *callable, zend_fcall_info * fci, zend_fcall_info_cache * fcc, int num_args TSRMLS_DC) argument
818 do_fetch_opt_finish(pdo_stmt_t *stmt, int free_ctor_agrs TSRMLS_DC) argument
841 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
1229 pdo_stmt_verify_mode(pdo_stmt_t *stmt, long mode, int fetch_all TSRMLS_DC) argument
1561 register_bound_param(INTERNAL_FUNCTION_PARAMETERS, pdo_stmt_t *stmt, int is_param) argument
1752 generic_stmt_attr_get(pdo_stmt_t *stmt, zval *return_value, long attr) argument
1855 pdo_stmt_setup_fetch_mode(INTERNAL_FUNCTION_PARAMETERS, pdo_stmt_t *stmt, int skip) argument
2219 pdo_stmt_t * stmt = (pdo_stmt_t *) zend_object_store_get_object(object TSRMLS_CC); local
2232 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
2298 pdo_stmt_t *stmt; local
2423 pdo_stmt_t *stmt; local
2441 pdo_stmt_t *stmt; member in struct:php_pdo_iterator
2505 pdo_stmt_t *stmt = I->stmt; /* for PDO_HANDLE_STMT_ERR() */ local
2529 pdo_stmt_t *stmt = (pdo_stmt_t*)zend_object_store_get_object(object TSRMLS_CC); local
2565 pdo_stmt_t * stmt = (pdo_stmt_t *) zend_object_store_get_object(object TSRMLS_CC); local
2618 pdo_stmt_t * stmt = (pdo_stmt_t *) zend_object_store_get_object(object TSRMLS_CC); local
2657 pdo_stmt_t * stmt = (pdo_stmt_t *) zend_object_store_get_object(object TSRMLS_CC); local
[all...]
/PHP_5_6/ext/mysqlnd/
H A Dmysqlnd_driver.c200 MYSQLND_STMT_DATA * stmt = NULL; local
210 stmt = ret->data = mnd_pecalloc(1, sizeof(MYSQLND_STMT_DATA), conn->persistent);
211 DBG_INF_FMT("stmt=%p", stmt);
212 if (!stmt) {
215 stmt->persistent = conn->persistent;
216 stmt->error_info = &(stmt->error_info_impl);
217 stmt->upsert_status = &(stmt
[all...]
H A Dmysqlnd.h170 #define mysqlnd_stmt_insert_id(stmt) (stmt)->m->get_last_insert_id((stmt) TSRMLS_CC)
171 #define mysqlnd_stmt_affected_rows(stmt) (stmt)->m->get_affected_rows((stmt) TSRMLS_CC)
172 #define mysqlnd_stmt_num_rows(stmt) (stmt)->m->get_num_rows((stmt) TSRMLS_CC)
173 #define mysqlnd_stmt_param_count(stmt) (stm
[all...]
H A Dmysqlnd_ps.c42 static void mysqlnd_stmt_separate_result_bind(MYSQLND_STMT * const stmt TSRMLS_DC);
43 static void mysqlnd_stmt_separate_one_result_bind(MYSQLND_STMT * const stmt, unsigned int param_no TSRMLS_DC);
49 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
55 if (!stmt || !stmt->conn || !stmt->result) {
58 DBG_INF_FMT("stmt=%lu", stmt->stmt_id);
60 conn = stmt->conn;
63 if (!stmt
146 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
216 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
230 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
260 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
297 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
341 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
380 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
493 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
606 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
737 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
839 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
960 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1007 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1146 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1200 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1253 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1292 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1403 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1474 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1530 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1559 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1613 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1664 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1674 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1684 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1694 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1704 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1714 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1724 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1734 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1744 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1754 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1764 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1774 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1787 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1850 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1905 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1936 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1990 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
2046 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
2096 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
2127 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
2165 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
2250 MYSQLND_STMT_DATA * stmt = (s != NULL) ? s->data:NULL; local
2276 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
2290 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
2304 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
2316 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
[all...]
H A Dmysqlnd_ps_codec.c572 mysqlnd_stmt_free_copies(MYSQLND_STMT_DATA * stmt, zval ** copies TSRMLS_DC) argument
576 for (i = 0; i < stmt->param_count; i++) {
617 mysqlnd_stmt_execute_prepare_param_types(MYSQLND_STMT_DATA * stmt, zval *** copies_param, int * resend_types_next_time TSRMLS_DC) argument
621 for (i = 0; i < stmt->param_count; i++) {
622 short current_type = stmt->param_bind[i].type;
624 if (Z_TYPE_P(stmt->param_bind[i].zv) != IS_NULL && (current_type == MYSQL_TYPE_LONG || current_type == MYSQL_TYPE_LONGLONG)) {
627 if (Z_TYPE_P(stmt->param_bind[i].zv) != IS_LONG &&
628 PASS != mysqlnd_stmt_copy_it(copies_param, stmt->param_bind[i].zv, stmt->param_count, i TSRMLS_CC))
630 SET_OOM_ERROR(*stmt
677 mysqlnd_stmt_execute_store_types(MYSQLND_STMT_DATA * stmt, zval ** copies, zend_uchar ** p) argument
719 mysqlnd_stmt_execute_calculate_param_values_size(MYSQLND_STMT_DATA * stmt, zval *** copies_param, size_t * data_size TSRMLS_DC) argument
805 mysqlnd_stmt_execute_store_param_values(MYSQLND_STMT_DATA * stmt, zval ** copies, zend_uchar * buf, zend_uchar ** p, size_t null_byte_offset) argument
869 MYSQLND_STMT_DATA * stmt = s->data; local
946 MYSQLND_STMT_DATA * stmt = s->data; local
[all...]
/PHP_5_6/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_6/ext/pdo_mysql/
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...]
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...]
/PHP_5_6/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:__anon172
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_6/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...]
H A Dphp_pdo_odbc_int.h148 PDO_ODBC_HSTMT stmt; member in struct:__anon4
170 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);
172 #define pdo_odbc_stmt_error(what) pdo_odbc_error(stmt->dbh, stmt, SQL_NULL_HSTMT, what, __FILE__, __LINE__ TSRMLS_CC)
173 #define pdo_odbc_doer_error(what) pdo_odbc_error(dbh, NULL, stmt, what, __FILE__, __LINE__ TSRMLS_CC)
/PHP_5_6/ext/pdo_sqlite/
H A Dphp_pdo_sqlite_int.h66 sqlite3_stmt *stmt; member in struct:__anon188
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_6/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...]
/PHP_5_6/ext/mysqli/
H A Dmysqli_api.c188 int mysqli_stmt_bind_param_do_bind(MY_STMT *stmt, unsigned int argc, unsigned int num_vars, argument
196 if (stmt->param.var_cnt) {
197 php_free_stmt_bind_buffer(stmt->param, FETCH_SIMPLE);
200 stmt->param.is_null = ecalloc(num_vars, sizeof(char));
211 bind[ofs].is_null = &stmt->param.is_null[ofs];
221 bind[ofs].is_null = &stmt->param.is_null[ofs];
232 bind[ofs].is_null = &stmt->param.is_null[ofs];
242 rc = mysql_stmt_bind_param(stmt->stmt, bind);
246 efree(stmt
265 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
325 MY_STMT *stmt; local
389 mysqli_stmt_bind_result_do_bind(MY_STMT *stmt, zval ***args, unsigned int argc, unsigned int start TSRMLS_DC) argument
562 mysqli_stmt_bind_result_do_bind(MY_STMT *stmt, zval ***args, unsigned int argc, unsigned int start TSRMLS_DC) argument
585 MY_STMT *stmt; local
896 MY_STMT *stmt; local
989 MY_STMT *stmt; local
1150 MY_STMT *stmt; local
1641 MY_STMT *stmt; local
1657 MY_STMT *stmt; local
1866 MY_STMT *stmt; local
2035 MY_STMT *stmt; local
2062 MY_STMT *stmt; local
2083 MY_STMT *stmt; local
2103 MY_STMT *stmt; local
2125 MY_STMT *stmt; local
2141 MY_STMT *stmt; local
2158 MY_STMT *stmt; local
2175 MY_STMT *stmt; local
2191 MY_STMT *stmt; local
2211 MY_STMT *stmt; local
2349 MY_STMT *stmt; local
2396 MY_STMT *stmt; local
2423 MY_STMT *stmt; local
2439 MY_STMT *stmt; local
2461 MY_STMT *stmt; local
2493 MY_STMT *stmt; local
2517 MY_STMT *stmt; local
2543 MY_STMT *stmt; local
2592 MY_STMT *stmt; local
[all...]
H A Dmysqli_priv.h67 extern void php_clear_stmt_bind(MY_STMT *stmt TSRMLS_DC);
146 #define MYSQLI_REPORT_STMT_ERROR(stmt) \
147 if ((MyG(report_mode) & MYSQLI_REPORT_ERROR) && mysql_stmt_errno(stmt)) { \
148 php_mysqli_report_error(mysql_stmt_sqlstate(stmt), mysql_stmt_errno(stmt), mysql_stmt_error(stmt) TSRMLS_CC); \
/PHP_5_6/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;
112 stmt->driver_data = NULL;
116 static int pgsql_stmt_execute(pdo_stmt_t *stmt TSRMLS_DC)
118 pdo_pgsql_stmt *S = (pdo_pgsql_stmt*)stmt->driver_data;
139 spprintf(&q, 0, "DECLARE %s SCROLL CURSOR WITH HOLD FOR %s", S->cursor_name, stmt->active_query_string);
146 pdo_pgsql_error_stmt(stmt, status, pdo_pgsql_sqlstate(S->result));
165 stmt->bound_params ? zend_hash_num_elements(stmt->bound_params) : 0,
193 pdo_pgsql_error_stmt(stmt, statu
242 pgsql_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *param, enum pdo_param_event event_type TSRMLS_DC) argument
381 pgsql_stmt_fetch(pdo_stmt_t *stmt, enum pdo_fetch_orientation ori, long offset TSRMLS_DC) argument
429 pgsql_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC) argument
491 pgsql_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsigned long *len, int *caller_frees TSRMLS_DC) argument
570 pgsql_stmt_get_column_meta(pdo_stmt_t *stmt, long colno, zval *return_value TSRMLS_DC) argument
[all...]

Completed in 61 milliseconds

123