Searched defs:dbh (Results 1 - 11 of 11) sorted by relevance

/PHP_TRUNK/ext/pdo/
H A Dpdo_dbh.c39 static int pdo_dbh_attribute_set(pdo_dbh_t *dbh, zend_long attr, zval *value);
41 void pdo_raise_impl_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, const char *sqlstate, const char *supp) /* {{{ */ argument
43 pdo_error_type *pdo_err = &dbh->error_code;
47 if (dbh && dbh->error_mode == PDO_ERRMODE_SILENT) {
74 if (dbh && dbh->error_mode != PDO_ERRMODE_EXCEPTION) {
101 PDO_API void pdo_handle_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt) /* {{{ */ argument
103 pdo_error_type *pdo_err = &dbh->error_code;
110 if (dbh
200 pdo_dbh_t *dbh = NULL; local
408 pdo_stmt_instantiate(pdo_dbh_t *dbh, zval *object, zend_class_entry *dbstmt_ce, zval *ctor_args) argument
485 pdo_dbh_t *dbh = dbh_obj->inner; local
576 pdo_dbh_t *dbh = Z_PDO_DBH_P(getThis()); local
609 pdo_dbh_t *dbh = Z_PDO_DBH_P(getThis()); local
635 pdo_dbh_t *dbh = Z_PDO_DBH_P(getThis()); local
661 pdo_dbh_t *dbh = Z_PDO_DBH_P(getThis()); local
676 pdo_dbh_attribute_set(pdo_dbh_t *dbh, zend_long attr, zval *value) argument
835 pdo_dbh_t *dbh = Z_PDO_DBH_P(getThis()); local
857 pdo_dbh_t *dbh = Z_PDO_DBH_P(getThis()); local
922 pdo_dbh_t *dbh = Z_PDO_DBH_P(getThis()); local
951 pdo_dbh_t *dbh = Z_PDO_DBH_P(getThis()); local
984 pdo_dbh_t *dbh = Z_PDO_DBH_P(getThis()); local
1015 pdo_dbh_t *dbh = Z_PDO_DBH_P(getThis()); local
1061 pdo_dbh_t *dbh = dbh_obj->inner; local
1134 pdo_dbh_t *dbh = Z_PDO_DBH_P(getThis()); local
1274 pdo_dbh_t *dbh = dbh_obj->inner; local
1481 dbh_free(pdo_dbh_t *dbh, zend_bool free_persistent) argument
1528 pdo_dbh_t *dbh = php_pdo_dbh_fetch_inner(std); local
1543 pdo_dbh_object_t *dbh; local
1562 pdo_dbh_t *dbh = (pdo_dbh_t*)res->ptr; local
[all...]
H A Dphp_pdo_driver.h231 * the dbh. dbh contains the data source string and flags for this
232 * instance. You MUST respect dbh->is_persistent and pass that flag to
233 * pemalloc() for all allocations that are stored in the dbh or your instance
237 int (*db_handle_factory)(pdo_dbh_t *dbh, zval *driver_options);
244 typedef int (*pdo_dbh_close_func)(pdo_dbh_t *dbh);
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);
250 typedef zend_long (*pdo_dbh_do_func)(pdo_dbh_t *dbh, const char *sql, zend_long sql_len);
253 typedef int (*pdo_dbh_quote_func)(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type paramtype);
256 typedef int (*pdo_dbh_txn_func)(pdo_dbh_t *dbh);
585 pdo_dbh_t *dbh; member in struct:_pdo_stmt_t
[all...]
/PHP_TRUNK/ext/pdo_dblib/
H A Ddblib_driver.c38 static int dblib_fetch_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, zval *info) argument
40 pdo_dblib_db_handle *H = (pdo_dblib_db_handle *)dbh->driver_data;
76 static int dblib_handle_closer(pdo_dbh_t *dbh) argument
78 pdo_dblib_db_handle *H = (pdo_dblib_db_handle *)dbh->driver_data;
89 pefree(H, dbh->is_persistent);
90 dbh->driver_data = NULL;
95 static int dblib_handle_preparer(pdo_dbh_t *dbh, const char *sql, zend_long sql_len, pdo_stmt_t *stmt, zval *driver_options) argument
97 pdo_dblib_db_handle *H = (pdo_dblib_db_handle *)dbh->driver_data;
109 static zend_long dblib_handle_doer(pdo_dbh_t *dbh, const char *sql, zend_long sql_len) argument
111 pdo_dblib_db_handle *H = (pdo_dblib_db_handle *)dbh
145 dblib_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type paramtype) argument
203 pdo_dblib_transaction_cmd(const char *cmd, pdo_dbh_t *dbh) argument
218 dblib_handle_begin(pdo_dbh_t *dbh) argument
223 dblib_handle_commit(pdo_dbh_t *dbh) argument
228 dblib_handle_rollback(pdo_dbh_t *dbh) argument
233 dblib_handle_last_id(pdo_dbh_t *dbh, const char *name, unsigned int *len) argument
277 dblib_set_attr(pdo_dbh_t *dbh, zend_long attr, zval *val) argument
288 dblib_get_attribute(pdo_dbh_t *dbh, zend_long attr, zval *return_value) argument
312 pdo_dblib_handle_factory(pdo_dbh_t *dbh, zval *driver_options) argument
[all...]
/PHP_TRUNK/ext/pdo_firebird/
H A Dfirebird_driver.c38 void _firebird_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, char const *file, zend_long line) /* {{{ */ argument
42 : (pdo_firebird_db_handle *)dbh->driver_data;
44 pdo_error_type *const error_code = stmt ? &stmt->error_code : &dbh->error_code;
93 #define RECORD_ERROR(dbh) _firebird_error(dbh, NULL, __FILE__, __LINE__)
96 static int firebird_handle_closer(pdo_dbh_t *dbh) /* {{{ */ argument
98 pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data;
100 if (dbh->in_txn) {
101 if (dbh->auto_commit) {
103 RECORD_ERROR(dbh);
133 firebird_handle_preparer(pdo_dbh_t *dbh, const char *sql, zend_long sql_len, pdo_stmt_t *stmt, zval *driver_options) argument
219 firebird_handle_doer(pdo_dbh_t *dbh, const char *sql, zend_long sql_len) argument
273 firebird_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type paramtype) argument
313 firebird_handle_begin(pdo_dbh_t *dbh) argument
366 firebird_handle_commit(pdo_dbh_t *dbh) argument
379 firebird_handle_rollback(pdo_dbh_t *dbh) argument
392 firebird_alloc_prepare_stmt(pdo_dbh_t *dbh, const char *sql, zend_long sql_len, XSQLDA *out_sqlda, isc_stmt_handle *s, HashTable *named_params) argument
471 firebird_handle_set_attribute(pdo_dbh_t *dbh, zend_long attr, zval *val) argument
546 firebird_handle_get_attribute(pdo_dbh_t *dbh, zend_long attr, zval *val) argument
602 pdo_firebird_fetch_error_func(pdo_dbh_t *dbh, pdo_stmt_t *stmt, zval *info) argument
642 pdo_firebird_handle_factory(pdo_dbh_t *dbh, zval *driver_options) 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) argument
48 pdo_mysql_db_handle *H = (pdo_mysql_db_handle *)dbh->driver_data;
60 pdo_err = &dbh->error_code;
74 pefree(einfo->errmsg, dbh->is_persistent);
85 dbh->is_persistent);
90 dbh->is_persistent);
93 einfo->errmsg = pestrdup(mysql_error(H->server), dbh->is_persistent);
106 if (!dbh->methods) {
117 static int pdo_mysql_fetch_error_func(pdo_dbh_t *dbh, pdo_stmt_t *stmt, zval *info) argument
119 pdo_mysql_db_handle *H = (pdo_mysql_db_handle *)dbh
141 mysql_handle_closer(pdo_dbh_t *dbh) argument
164 mysql_handle_preparer(pdo_dbh_t *dbh, const char *sql, zend_long sql_len, pdo_stmt_t *stmt, zval *driver_options) argument
256 mysql_handle_doer(pdo_dbh_t *dbh, const char *sql, zend_long sql_len) argument
291 pdo_mysql_last_insert_id(pdo_dbh_t *dbh, const char *name, unsigned int *len) argument
302 mysql_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type paramtype ) argument
318 mysql_handle_begin(pdo_dbh_t *dbh) argument
327 mysql_handle_commit(pdo_dbh_t *dbh) argument
340 mysql_handle_rollback(pdo_dbh_t *dbh) argument
353 mysql_handle_autocommit(pdo_dbh_t *dbh) argument
371 pdo_mysql_set_attribute(pdo_dbh_t *dbh, zend_long attr, zval *val) argument
422 pdo_mysql_get_attribute(pdo_dbh_t *dbh, zend_long attr, zval *return_value) argument
485 pdo_mysql_check_liveness(pdo_dbh_t *dbh) argument
541 pdo_mysql_handle_factory(pdo_dbh_t *dbh, zval *driver_options) argument
[all...]
H A Dpdo_mysql.c68 pdo_dbh_t * dbh = Z_PDO_DBH_P(zv); local
70 if (!dbh) {
75 if (dbh->driver != &pdo_mysql_driver) {
76 php_error_docref(NULL, E_WARNING, "Provided PDO instance is not using MySQL but %s", dbh->driver->driver_name);
80 return ((pdo_mysql_db_handle *)dbh->driver_data)->server;
/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) /* {{{ */ argument
38 pdo_oci_db_handle *H = (pdo_oci_db_handle *)dbh->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) /* {{{ */ argument
64 pdo_oci_db_handle *H = (pdo_oci_db_handle *)dbh->driver_data;
67 pdo_error_type *pdo_err = &dbh->error_code;
79 pefree(einfo->errmsg, dbh->is_persistent);
90 einfo->errmsg = pestrdup(tmp_buf, dbh->is_persistent);
100 einfo->errmsg = pestrdup(tmp_buf, dbh->is_persistent);
105 einfo->errmsg = pestrdup(tmp_buf, dbh->is_persistent);
109 einfo->errmsg = pestrdup(tmp_buf, dbh
198 oci_handle_closer(pdo_dbh_t *dbh) argument
251 oci_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, pdo_stmt_t *stmt, zval *driver_options) argument
327 oci_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len) argument
371 oci_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type paramtype ) argument
408 oci_handle_begin(pdo_dbh_t *dbh) argument
415 oci_handle_commit(pdo_dbh_t *dbh) argument
429 oci_handle_rollback(pdo_dbh_t *dbh) argument
443 oci_handle_set_attribute(pdo_dbh_t *dbh, long attr, zval *val) argument
470 oci_handle_get_attribute(pdo_dbh_t *dbh, long attr, zval *return_value) argument
536 pdo_oci_check_liveness(pdo_dbh_t *dbh) argument
591 pdo_oci_handle_factory(pdo_dbh_t *dbh, zval *driver_options) argument
[all...]
/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) argument
36 pdo_odbc_db_handle *H = (pdo_odbc_db_handle *)dbh->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) /* {{{ */ argument
65 pdo_odbc_db_handle *H = (pdo_odbc_db_handle*)dbh->driver_data;
68 pdo_error_type *pdo_err = &dbh->error_code;
106 if (!dbh->methods) {
127 static int odbc_handle_closer(pdo_dbh_t *dbh) argument
129 pdo_odbc_db_handle *H = (pdo_odbc_db_handle*)dbh->driver_data;
139 pefree(H, dbh->is_persistent);
140 dbh
145 odbc_handle_preparer(pdo_dbh_t *dbh, const char *sql, zend_long sql_len, pdo_stmt_t *stmt, zval *driver_options) argument
223 odbc_handle_doer(pdo_dbh_t *dbh, const char *sql, zend_long sql_len) argument
264 odbc_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type param_type ) argument
271 odbc_handle_begin(pdo_dbh_t *dbh) argument
287 odbc_handle_commit(pdo_dbh_t *dbh) argument
313 odbc_handle_rollback(pdo_dbh_t *dbh) argument
339 odbc_handle_set_attr(pdo_dbh_t *dbh, zend_long attr, zval *val) argument
354 odbc_handle_get_attr(pdo_dbh_t *dbh, zend_long attr, zval *val) argument
391 pdo_odbc_handle_factory(pdo_dbh_t *dbh, zval *driver_options) argument
[all...]
/PHP_TRUNK/ext/pdo_pgsql/
H A Dpgsql_driver.c65 int _pdo_pgsql_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, int errcode, const char *sqlstate, const char *msg, const char *file, int line) /* {{{ */ argument
67 pdo_pgsql_db_handle *H = (pdo_pgsql_db_handle *)dbh->driver_data;
68 pdo_error_type *pdo_err = stmt ? &stmt->error_code : &dbh->error_code;
77 pefree(einfo->errmsg, dbh->is_persistent);
92 einfo->errmsg = _pdo_pgsql_trim_message(errmsg, dbh->is_persistent);
95 if (!dbh->methods) {
104 static void _pdo_pgsql_notice(pdo_dbh_t *dbh, const char *message) /* {{{ */ argument
106 /* pdo_pgsql_db_handle *H = (pdo_pgsql_db_handle *)dbh->driver_data; */
110 static int pdo_pgsql_fetch_error_func(pdo_dbh_t *dbh, pdo_stmt_t *stmt, zval *info) /* {{{ */ argument
112 pdo_pgsql_db_handle *H = (pdo_pgsql_db_handle *)dbh
175 pdo_pgsql_create_lob_stream(zval *dbh, int lfd, Oid oid) argument
198 pgsql_handle_closer(pdo_dbh_t *dbh) argument
217 pgsql_handle_preparer(pdo_dbh_t *dbh, const char *sql, zend_long sql_len, pdo_stmt_t *stmt, zval *driver_options) argument
290 pgsql_handle_doer(pdo_dbh_t *dbh, const char *sql, zend_long sql_len) argument
319 pgsql_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type paramtype) argument
348 pdo_pgsql_last_insert_id(pdo_dbh_t *dbh, const char *name, unsigned int *len) argument
380 pdo_pgsql_get_attribute(pdo_dbh_t *dbh, zend_long attr, zval *return_value) argument
464 pdo_pgsql_check_liveness(pdo_dbh_t *dbh) argument
474 pgsql_handle_in_transaction(pdo_dbh_t *dbh) argument
483 pdo_pgsql_transaction_cmd(const char *cmd, pdo_dbh_t *dbh) argument
500 pgsql_handle_begin(pdo_dbh_t *dbh) argument
505 pgsql_handle_commit(pdo_dbh_t *dbh) argument
518 pgsql_handle_rollback(pdo_dbh_t *dbh) argument
527 pdo_dbh_t *dbh; local
638 pdo_dbh_t *dbh; local
737 pdo_dbh_t *dbh; local
832 pdo_dbh_t *dbh; local
909 pdo_dbh_t *dbh; local
936 pdo_dbh_t *dbh; local
988 pdo_dbh_t *dbh; local
1024 pdo_dbh_t *dbh; local
1092 pdo_dbh_t *dbh; local
1118 pdo_pgsql_get_driver_methods(pdo_dbh_t *dbh, int kind) argument
1128 pdo_pgsql_set_attr(pdo_dbh_t *dbh, zend_long attr, zval *val) argument
1169 pdo_pgsql_handle_factory(pdo_dbh_t *dbh, zval *driver_options) argument
[all...]
H A Dphp_pdo_pgsql_int.h82 extern int _pdo_pgsql_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, int errcode, const char *sqlstate, const char *msg, const char *file, int line);
85 #define pdo_pgsql_error_stmt(s,e,z) _pdo_pgsql_error(s->dbh, s, e, z, NULL, __FILE__, __LINE__)
86 #define pdo_pgsql_error_stmt_msg(s,e,m) _pdo_pgsql_error(s->dbh, s, e, NULL, m, __FILE__, __LINE__)
98 zval dbh; member in struct:pdo_pgsql_lob_self
/PHP_TRUNK/ext/pdo_sqlite/
H A Dsqlite_driver.c34 int _pdo_sqlite_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, const char *file, int line) /* {{{ */ argument
36 pdo_sqlite_db_handle *H = (pdo_sqlite_db_handle *)dbh->driver_data;
37 pdo_error_type *pdo_err = stmt ? &stmt->error_code : &dbh->error_code;
46 pefree(einfo->errmsg, dbh->is_persistent);
48 einfo->errmsg = pestrdup((char*)sqlite3_errmsg(H->db), dbh->is_persistent);
80 if (!dbh->methods) {
89 static int pdo_sqlite_fetch_error_func(pdo_dbh_t *dbh, pdo_stmt_t *stmt, zval *info) argument
91 pdo_sqlite_db_handle *H = (pdo_sqlite_db_handle *)dbh->driver_data;
155 static int sqlite_handle_closer(pdo_dbh_t *dbh) /* {{{ */ argument
157 pdo_sqlite_db_handle *H = (pdo_sqlite_db_handle *)dbh
178 sqlite_handle_preparer(pdo_dbh_t *dbh, const char *sql, zend_long sql_len, pdo_stmt_t *stmt, zval *driver_options) argument
206 sqlite_handle_doer(pdo_dbh_t *dbh, const char *sql, zend_long sql_len) argument
222 pdo_sqlite_last_insert_id(pdo_dbh_t *dbh, const char *name, unsigned int *len) argument
233 sqlite_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type paramtype ) argument
241 sqlite_handle_begin(pdo_dbh_t *dbh) argument
255 sqlite_handle_commit(pdo_dbh_t *dbh) argument
269 sqlite_handle_rollback(pdo_dbh_t *dbh) argument
283 pdo_sqlite_get_attribute(pdo_dbh_t *dbh, zend_long attr, zval *return_value) argument
298 pdo_sqlite_set_attr(pdo_dbh_t *dbh, zend_long attr, zval *val) argument
523 pdo_dbh_t *dbh; local
593 pdo_dbh_t *dbh; local
653 pdo_dbh_t *dbh; local
700 get_driver_methods(pdo_dbh_t *dbh, int kind) argument
711 pdo_sqlite_request_shutdown(pdo_dbh_t *dbh) argument
785 pdo_sqlite_handle_factory(pdo_dbh_t *dbh, zval *driver_options) argument
[all...]

Completed in 22 milliseconds