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

123

/PHP_TRUNK/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.re83 PDO_API int pdo_parse_params(pdo_stmt_t *stmt, char *inquery, int inquery_len,
138 pdo_raise_impl_error(stmt->dbh, stmt, "HY093", "mixed named and positional parameters" TSRMLS_CC);
143 if (stmt->supports_placeholders == query_type && !stmt->named_rewrite_template) {
149 if (stmt->named_rewrite_template) {
158 params = stmt->bound_params;
161 if (bindno && !params && stmt->supports_placeholders == PDO_PLACEHOLDER_NONE) {
162 pdo_raise_impl_error(stmt->dbh, stmt, "HY09
[all...]
H A Dpdo_stmt.c111 pdo_stmt_t *stmt = Z_PDO_STMT_P(getThis()); \
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 ((name = zend_hash_index_find_ptr(stmt->bound_param_map, param->paramno)) != NULL) {
144 pdo_raise_impl_error(stmt->dbh, stmt, "HY093", "parameter was not defined" TSRMLS_CC);
148 ZEND_HASH_FOREACH_PTR(stmt->bound_param_map, name) {
154 pdo_raise_impl_error(stmt
168 dispatch_param_event(pdo_stmt_t *stmt, enum pdo_param_event event_type TSRMLS_DC) argument
257 get_lazy_object(pdo_stmt_t *stmt, zval *return_value TSRMLS_DC) argument
296 really_register_bound_param(struct pdo_bound_param_data *param, pdo_stmt_t *stmt, int is_param TSRMLS_DC) argument
543 fetch_value(pdo_stmt_t *stmt, zval *dest, int colno, int *type_override TSRMLS_DC) argument
677 do_fetch_common(pdo_stmt_t *stmt, enum pdo_fetch_orientation ori, zend_long offset, int do_bind TSRMLS_DC) argument
767 make_callable_ex(pdo_stmt_t *stmt, zval *callable, zend_fcall_info * fci, zend_fcall_info_cache * fcc, int num_args TSRMLS_DC) argument
806 do_fetch_opt_finish(pdo_stmt_t *stmt, int free_ctor_agrs TSRMLS_DC) argument
835 do_fetch(pdo_stmt_t *stmt, int do_bind, zval *return_value, enum pdo_fetch_type how, enum pdo_fetch_orientation ori, zend_long offset, zval *return_all TSRMLS_DC) argument
1216 pdo_stmt_verify_mode(pdo_stmt_t *stmt, zend_long mode, int fetch_all TSRMLS_DC) argument
1545 register_bound_param(INTERNAL_FUNCTION_PARAMETERS, pdo_stmt_t *stmt, int is_param) argument
1736 generic_stmt_attr_get(pdo_stmt_t *stmt, zval *return_value, zend_long attr) argument
1839 pdo_stmt_setup_fetch_mode(INTERNAL_FUNCTION_PARAMETERS, pdo_stmt_t *stmt, int skip) argument
2188 pdo_stmt_t *stmt = Z_PDO_STMT_P(object); local
2201 pdo_stmt_t *stmt = Z_PDO_STMT_P(object); local
2222 pdo_stmt_t *stmt = php_pdo_stmt_fetch_object(object); local
2255 pdo_stmt_t *stmt; local
2353 pdo_stmt_t *stmt = php_pdo_stmt_fetch_object(std); local
2359 pdo_stmt_t *stmt; local
2423 pdo_stmt_t *stmt = Z_PDO_STMT_P(&I->iter.data); /* for PDO_HANDLE_STMT_ERR() */ local
2453 pdo_stmt_t *stmt = Z_PDO_STMT_P(object); local
2486 pdo_stmt_t *stmt = row->stmt; local
2542 pdo_stmt_t *stmt = row->stmt; local
2582 pdo_stmt_t *stmt = row->stmt; local
[all...]
H A Dphp_pdo_driver.h246 /* prepare a statement and stash driver specific portion into stmt */
247 typedef int (*pdo_dbh_prepare_func)(pdo_dbh_t *dbh, const char *sql, zend_long sql_len, pdo_stmt_t *stmt, zval *driver_options TSRMLS_DC);
265 /* fetch error information. if stmt is not null, fetch information pertaining
271 typedef int (*pdo_dbh_fetch_error_func)(pdo_dbh_t *dbh, pdo_stmt_t *stmt, zval *info TSRMLS_DC);
286 /* for adding methods to the dbh or stmt objects
323 typedef int (*pdo_stmt_dtor_func)(pdo_stmt_t *stmt TSRMLS_DC);
326 typedef int (*pdo_stmt_execute_func)(pdo_stmt_t *stmt TSRMLS_DC);
330 * if the stmt represents a scrollable cursor */
331 typedef int (*pdo_stmt_fetch_func)(pdo_stmt_t *stmt,
335 * Driver should populate stmt
553 pdo_stmt_t *stmt; /* for convenience in dtor */ member in struct:pdo_bound_param_data
657 pdo_stmt_t *stmt; member in struct:_pdo_row_t
[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); }
/PHP_TRUNK/ext/mysqli/
H A Dmysqli_api.c184 int mysqli_stmt_bind_param_do_bind(MY_STMT *stmt, unsigned int argc, unsigned int num_vars, argument
192 if (stmt->param.var_cnt) {
193 php_free_stmt_bind_buffer(stmt->param, FETCH_SIMPLE);
196 stmt->param.is_null = ecalloc(num_vars, sizeof(char));
212 bind[ofs].is_null = &stmt->param.is_null[ofs];
222 bind[ofs].is_null = &stmt->param.is_null[ofs];
233 bind[ofs].is_null = &stmt->param.is_null[ofs];
243 rc = mysql_stmt_bind_param(stmt->stmt, bind);
247 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
559 mysqli_stmt_bind_result_do_bind(MY_STMT *stmt, zval *args, unsigned int argc, unsigned int start TSRMLS_DC) argument
582 MY_STMT *stmt; local
873 MY_STMT *stmt; local
951 MY_STMT *stmt; local
1116 MY_STMT *stmt; local
1615 MY_STMT *stmt; local
1630 MY_STMT *stmt; local
1837 MY_STMT *stmt; local
2003 MY_STMT *stmt; local
2029 MY_STMT *stmt; local
2050 MY_STMT *stmt; local
2070 MY_STMT *stmt; local
2092 MY_STMT *stmt; local
2108 MY_STMT *stmt; local
2125 MY_STMT *stmt; local
2142 MY_STMT *stmt; local
2158 MY_STMT *stmt; local
2178 MY_STMT *stmt; local
2317 MY_STMT *stmt; local
2364 MY_STMT *stmt; local
2391 MY_STMT *stmt; local
2407 MY_STMT *stmt; local
2429 MY_STMT *stmt; local
2460 MY_STMT *stmt; local
2484 MY_STMT *stmt; local
2510 MY_STMT *stmt; local
2559 MY_STMT *stmt; local
[all...]
H A Dmysqli_priv.h67 extern void php_clear_stmt_bind(MY_STMT *stmt TSRMLS_DC);
142 #define MYSQLI_REPORT_STMT_ERROR(stmt) \
143 if ((MyG(report_mode) & MYSQLI_REPORT_ERROR) && mysql_stmt_errno(stmt)) { \
144 php_mysqli_report_error(mysql_stmt_sqlstate(stmt), mysql_stmt_errno(stmt), mysql_stmt_error(stmt) TSRMLS_CC); \
H A Dmysqli_prop.c72 p = (MYSQL_STMT *)((MY_STMT *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr)->stmt;\
331 ZVAL_LONG(retval, mysqli_stmt_get_id(p->stmt));
350 rc = mysql_stmt_affected_rows(p->stmt);
370 MY_STMT * stmt; local
374 stmt = (MY_STMT *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr;
376 if (stmt && stmt->stmt) {
378 if (stmt->stmt
[all...]
/PHP_TRUNK/ext/mysqlnd/
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_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_ps.c43 static void mysqlnd_stmt_separate_result_bind(MYSQLND_STMT * const stmt TSRMLS_DC);
44 static void mysqlnd_stmt_separate_one_result_bind(MYSQLND_STMT * const stmt, unsigned int param_no TSRMLS_DC);
50 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
56 if (!stmt || !stmt->conn || !stmt->result) {
59 DBG_INF_FMT("stmt=%lu", stmt->stmt_id);
61 conn = stmt->conn;
64 if (!stmt
147 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
217 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
231 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
261 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
298 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
342 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
381 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
494 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
607 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
740 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
842 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
967 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1014 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1159 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1215 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1268 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1307 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1418 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1487 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1541 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1570 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1626 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1677 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1687 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1697 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1707 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1717 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1727 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1737 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1747 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1757 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1767 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1777 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1787 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1800 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1863 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1918 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
1949 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
2003 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
2042 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
2075 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
2106 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
2142 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
2227 MYSQLND_STMT_DATA * stmt = (s != NULL) ? s->data:NULL; local
2253 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
2267 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
2281 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
2293 MYSQLND_STMT_DATA * stmt = s? s->data:NULL; local
[all...]
H A Dmysqlnd_ps_codec.c569 mysqlnd_stmt_free_copies(MYSQLND_STMT_DATA * stmt, zval *copies TSRMLS_DC) argument
573 for (i = 0; i < stmt->param_count; i++) {
612 mysqlnd_stmt_execute_prepare_param_types(MYSQLND_STMT_DATA * stmt, zval ** copies_param, int * resend_types_next_time TSRMLS_DC) argument
616 for (i = 0; i < stmt->param_count; i++) {
617 short current_type = stmt->param_bind[i].type;
618 zval *parameter = &stmt->param_bind[i].zv;
624 PASS != mysqlnd_stmt_copy_it(copies_param, parameter, stmt->param_count, i TSRMLS_CC))
626 SET_OOM_ERROR(*stmt->error_info);
650 stmt->send_types_to_server = *resend_types_next_time = 1;
669 mysqlnd_stmt_execute_store_types(MYSQLND_STMT_DATA * stmt, zva argument
713 mysqlnd_stmt_execute_calculate_param_values_size(MYSQLND_STMT_DATA * stmt, zval ** copies_param, size_t * data_size TSRMLS_DC) argument
804 mysqlnd_stmt_execute_store_param_values(MYSQLND_STMT_DATA * stmt, zval * copies, zend_uchar * buf, zend_uchar ** p, size_t null_byte_offset) argument
871 MYSQLND_STMT_DATA * stmt = s->data; local
947 MYSQLND_STMT_DATA * stmt = s->data; local
[all...]
/PHP_TRUNK/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, zend_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, zend_ulong *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, zend_long colno, zval *return_value TSRMLS_DC) argument
[all...]
/PHP_TRUNK/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, zend_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, zend_ulong *len, ISC_QUAD *blob_id TSRMLS_DC) argument
298 firebird_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, zend_ulong *len, int *caller_frees TSRMLS_DC) argument
411 firebird_bind_blob(pdo_stmt_t *stmt, ISC_QUAD *blob_id, zval *param TSRMLS_DC) argument
449 firebird_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *param, enum pdo_param_event event_type TSRMLS_DC) argument
657 firebird_stmt_set_attribute(pdo_stmt_t *stmt, zend_long attr, zval *val TSRMLS_DC) argument
678 firebird_stmt_get_attribute(pdo_stmt_t *stmt, zend_long attr, zval *val TSRMLS_DC) argument
[all...]
/PHP_TRUNK/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, zend_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
453 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, zend_long offset TSRMLS_DC) argument
675 pdo_mysql_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC) argument
725 pdo_mysql_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, zend_ulong *len, int *caller_frees TSRMLS_DC) argument
826 pdo_mysql_stmt_col_meta(pdo_stmt_t *stmt, zend_long colno, zval *return_value TSRMLS_DC) argument
[all...]
/PHP_TRUNK/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:__anon171
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_TRUNK/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, zend_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
282 odbc_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *param, enum pdo_param_event event_type TSRMLS_DC) argument
526 odbc_stmt_fetch(pdo_stmt_t *stmt, enum pdo_fetch_orientation ori, zend_long offset TSRMLS_DC) argument
564 odbc_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC) argument
631 odbc_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, zend_ulong *len, int *caller_frees TSRMLS_DC) argument
758 odbc_stmt_set_param(pdo_stmt_t *stmt, zend_long attr, zval *val TSRMLS_DC) argument
785 odbc_stmt_get_attr(pdo_stmt_t *stmt, zend_long attr, zval *val TSRMLS_DC) argument
[all...]
H A Dphp_pdo_odbc_int.h148 PDO_ODBC_HSTMT stmt; member in struct:__anon176
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_TRUNK/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
393 pgsql_stmt_fetch(pdo_stmt_t *stmt, enum pdo_fetch_orientation ori, zend_long offset TSRMLS_DC) argument
441 pgsql_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC) argument
501 pgsql_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, zend_ulong *len, int *caller_frees TSRMLS_DC) argument
580 pgsql_stmt_get_column_meta(pdo_stmt_t *stmt, zend_long colno, zval *return_value TSRMLS_DC) argument
[all...]
/PHP_TRUNK/ext/pdo_sqlite/
H A Dphp_pdo_sqlite_int.h66 sqlite3_stmt *stmt; member in struct:__anon187
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
200 pdo_sqlite_stmt_fetch(pdo_stmt_t *stmt, enum pdo_fetch_orientation ori, zend_long offset TSRMLS_DC) argument
233 pdo_sqlite_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC) argument
262 pdo_sqlite_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, zend_ulong *len, int *caller_frees TSRMLS_DC) argument
291 pdo_sqlite_stmt_col_meta(pdo_stmt_t *stmt, zend_long colno, zval *return_value TSRMLS_DC) argument
[all...]

Completed in 32 milliseconds

123