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

/PHP_5_5/ext/pdo/
H A Dphp_pdo_driver.h229 * the dbh. dbh contains the data source string and flags for this
230 * instance. You MUST respect dbh->is_persistent and pass that flag to
231 * pemalloc() for all allocations that are stored in the dbh or your instance
235 int (*db_handle_factory)(pdo_dbh_t *dbh, zval *driver_options TSRMLS_DC);
242 typedef int (*pdo_dbh_close_func)(pdo_dbh_t *dbh TSRMLS_DC);
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);
248 typedef long (*pdo_dbh_do_func)(pdo_dbh_t *dbh, const char *sql, long sql_len TSRMLS_DC);
251 typedef int (*pdo_dbh_quote_func)(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type paramtype TSRMLS_DC);
254 typedef int (*pdo_dbh_txn_func)(pdo_dbh_t *dbh TSRMLS_D
574 pdo_dbh_t *dbh; member in struct:_pdo_stmt_t
[all...]
H A Dpdo_dbh.c39 static int pdo_dbh_attribute_set(pdo_dbh_t *dbh, long attr, zval *value TSRMLS_DC);
41 void pdo_raise_impl_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, const char *sqlstate, const char *supp TSRMLS_DC) /* {{{ */ 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) {
104 void pdo_handle_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt TSRMLS_DC) /* {{{ */ argument
106 pdo_error_type *pdo_err = &dbh->error_code;
113 if (dbh
204 pdo_dbh_t *dbh = NULL; local
428 pdo_stmt_instantiate(pdo_dbh_t *dbh, zval *object, zend_class_entry *dbstmt_ce, zval *ctor_args TSRMLS_DC) argument
513 pdo_dbh_t *dbh = zend_object_store_get_object(getThis() TSRMLS_CC); local
610 pdo_dbh_t *dbh = zend_object_store_get_object(getThis() TSRMLS_CC); local
643 pdo_dbh_t *dbh = zend_object_store_get_object(getThis() TSRMLS_CC); local
669 pdo_dbh_t *dbh = zend_object_store_get_object(getThis() TSRMLS_CC); local
695 pdo_dbh_t *dbh = zend_object_store_get_object(getThis() TSRMLS_CC); local
710 pdo_dbh_attribute_set(pdo_dbh_t *dbh, long attr, zval *value TSRMLS_DC) argument
870 pdo_dbh_t *dbh = zend_object_store_get_object(getThis() TSRMLS_CC); local
892 pdo_dbh_t *dbh = zend_object_store_get_object(getThis() TSRMLS_CC); local
956 pdo_dbh_t *dbh = zend_object_store_get_object(getThis() TSRMLS_CC); local
986 pdo_dbh_t *dbh = zend_object_store_get_object(getThis() TSRMLS_CC); local
1015 pdo_dbh_t *dbh = zend_object_store_get_object(getThis() TSRMLS_CC); local
1046 pdo_dbh_t *dbh = zend_object_store_get_object(getThis() TSRMLS_CC); local
1088 pdo_dbh_t *dbh = zend_object_store_get_object(getThis() TSRMLS_CC); local
1165 pdo_dbh_t *dbh = zend_object_store_get_object(getThis() TSRMLS_CC); local
1289 pdo_hash_methods(pdo_dbh_t *dbh, int kind TSRMLS_DC) argument
1370 pdo_dbh_t *dbh = zend_object_store_get_object(object TSRMLS_CC); local
1588 pdo_dbh_t *dbh; local
1609 pdo_dbh_t *dbh = (pdo_dbh_t*)rsrc->ptr; local
[all...]
/PHP_5_5/ext/pdo_dblib/
H A Ddblib_driver.c38 static int dblib_fetch_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, zval *info TSRMLS_DC) argument
40 pdo_dblib_db_handle *H = (pdo_dblib_db_handle *)dbh->driver_data;
75 static int dblib_handle_closer(pdo_dbh_t *dbh TSRMLS_DC)
77 pdo_dblib_db_handle *H = (pdo_dblib_db_handle *)dbh->driver_data;
88 pefree(H, dbh->is_persistent);
89 dbh->driver_data = NULL;
94 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
96 pdo_dblib_db_handle *H = (pdo_dblib_db_handle *)dbh->driver_data;
108 static long dblib_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len TSRMLS_DC) argument
110 pdo_dblib_db_handle *H = (pdo_dblib_db_handle *)dbh
144 dblib_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type paramtype TSRMLS_DC) argument
203 dblib_handle_last_id(pdo_dbh_t *dbh, const char *name, unsigned int *len TSRMLS_DC) argument
265 pdo_dblib_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_DC) argument
[all...]
/PHP_5_5/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
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 TSRMLS_DC) argument
119 pdo_mysql_db_handle *H = (pdo_mysql_db_handle *)dbh
164 mysql_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, pdo_stmt_t *stmt, zval *driver_options TSRMLS_DC) argument
256 mysql_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len TSRMLS_DC) argument
291 pdo_mysql_last_insert_id(pdo_dbh_t *dbh, const char *name, unsigned int *len TSRMLS_DC) argument
302 mysql_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type paramtype TSRMLS_DC) argument
371 pdo_mysql_set_attribute(pdo_dbh_t *dbh, long attr, zval *val TSRMLS_DC) argument
417 pdo_mysql_get_attribute(pdo_dbh_t *dbh, long attr, zval *return_value TSRMLS_DC) argument
536 pdo_mysql_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_DC) argument
[all...]
H A Dpdo_mysql.c65 pdo_dbh_t * dbh = zend_object_store_get_object(zv TSRMLS_CC); local
67 if (!dbh) {
72 if (dbh->driver != &pdo_mysql_driver) {
73 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Provided PDO instance is not using MySQL but %s", dbh->driver->driver_name);
77 return ((pdo_mysql_db_handle *)dbh->driver_data)->server;
/PHP_5_5/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
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 TSRMLS_DC) /* {{{ */ 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
251 oci_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, pdo_stmt_t *stmt, zval *driver_options TSRMLS_DC) argument
327 oci_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len TSRMLS_DC) argument
371 oci_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type paramtype TSRMLS_DC) argument
443 oci_handle_set_attribute(pdo_dbh_t *dbh, long attr, zval *val TSRMLS_DC) argument
470 oci_handle_get_attribute(pdo_dbh_t *dbh, long attr, zval *return_value TSRMLS_DC) argument
591 pdo_oci_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_DC) argument
[all...]
/PHP_5_5/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
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 TSRMLS_DC) /* {{{ */ 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 TSRMLS_DC)
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, long sql_len, pdo_stmt_t *stmt, zval *driver_options TSRMLS_DC) argument
223 odbc_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len TSRMLS_DC) argument
264 odbc_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type param_type TSRMLS_DC) argument
339 odbc_handle_set_attr(pdo_dbh_t *dbh, long attr, zval *val TSRMLS_DC) argument
354 odbc_handle_get_attr(pdo_dbh_t *dbh, long attr, zval *val TSRMLS_DC) argument
391 pdo_odbc_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_DC) argument
[all...]
/PHP_5_5/ext/pdo_pgsql/
H A Dphp_pdo_pgsql_int.h86 extern int _pdo_pgsql_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, int errcode, const char *sqlstate, const char *file, int line TSRMLS_DC);
88 #define pdo_pgsql_error_stmt(s,e,z) _pdo_pgsql_error(s->dbh, s, e, z, __FILE__, __LINE__ TSRMLS_CC)
99 pdo_dbh_t *dbh; member in struct:pdo_pgsql_lob_self
H A Dpgsql_driver.c63 int _pdo_pgsql_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, int errcode, const char *sqlstate, const char *file, int line TSRMLS_DC) /* {{{ */ argument
65 pdo_pgsql_db_handle *H = (pdo_pgsql_db_handle *)dbh->driver_data;
66 pdo_error_type *pdo_err = stmt ? &stmt->error_code : &dbh->error_code;
75 pefree(einfo->errmsg, dbh->is_persistent);
87 einfo->errmsg = _pdo_pgsql_trim_message(errmsg, dbh->is_persistent);
90 if (!dbh->methods) {
99 static void _pdo_pgsql_notice(pdo_dbh_t *dbh, const char *message) /* {{{ */ argument
101 /* pdo_pgsql_db_handle *H = (pdo_pgsql_db_handle *)dbh->driver_data; */
105 static int pdo_pgsql_fetch_error_func(pdo_dbh_t *dbh, pdo_stmt_t *stmt, zval *info TSRMLS_DC) /* {{{ */ argument
107 pdo_pgsql_db_handle *H = (pdo_pgsql_db_handle *)dbh
135 pdo_dbh_t *dbh = self->dbh; local
171 pdo_pgsql_create_lob_stream(pdo_dbh_t *dbh, int lfd, Oid oid TSRMLS_DC) argument
213 pgsql_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, pdo_stmt_t *stmt, zval *driver_options TSRMLS_DC) argument
283 pgsql_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len TSRMLS_DC) argument
308 pgsql_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type paramtype TSRMLS_DC) argument
345 pdo_pgsql_last_insert_id(pdo_dbh_t *dbh, const char *name, unsigned int *len TSRMLS_DC) argument
377 pdo_pgsql_get_attribute(pdo_dbh_t *dbh, long attr, zval *return_value TSRMLS_DC) argument
513 pdo_dbh_t *dbh; local
621 pdo_dbh_t *dbh; local
713 pdo_dbh_t *dbh; local
802 pdo_dbh_t *dbh; local
875 pdo_dbh_t *dbh; local
900 pdo_dbh_t *dbh; local
949 pdo_dbh_t *dbh; local
990 pdo_pgsql_get_driver_methods(pdo_dbh_t *dbh, int kind TSRMLS_DC) argument
1000 pdo_pgsql_set_attr(pdo_dbh_t *dbh, long attr, zval *val TSRMLS_DC) argument
1037 pdo_pgsql_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_DC) argument
[all...]
/PHP_5_5/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 TSRMLS_DC) /* {{{ */ 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 TSRMLS_DC) argument
91 pdo_sqlite_db_handle *H = (pdo_sqlite_db_handle *)dbh->driver_data;
155 static int sqlite_handle_closer(pdo_dbh_t *dbh TSRMLS_DC) /* {{{ */
157 pdo_sqlite_db_handle *H = (pdo_sqlite_db_handle *)dbh
178 sqlite_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, pdo_stmt_t *stmt, zval *driver_options TSRMLS_DC) argument
206 sqlite_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len TSRMLS_DC) argument
222 pdo_sqlite_last_insert_id(pdo_dbh_t *dbh, const char *name, unsigned int *len TSRMLS_DC) argument
233 sqlite_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type paramtype TSRMLS_DC) argument
283 pdo_sqlite_get_attribute(pdo_dbh_t *dbh, long attr, zval *return_value TSRMLS_DC) argument
298 pdo_sqlite_set_attr(pdo_dbh_t *dbh, long attr, zval *val TSRMLS_DC) argument
542 pdo_dbh_t *dbh; local
613 pdo_dbh_t *dbh; local
675 pdo_dbh_t *dbh; local
723 get_driver_methods(pdo_dbh_t *dbh, int kind TSRMLS_DC) argument
810 pdo_sqlite_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_DC) argument
[all...]
/PHP_5_5/ext/pdo_firebird/
H A Dfirebird_driver.c40 void _firebird_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, char const *file, long line TSRMLS_DC) /* {{{ */ argument
44 : (pdo_firebird_db_handle *)dbh->driver_data;
46 pdo_error_type *const error_code = stmt ? &stmt->error_code : &dbh->error_code;
95 #define RECORD_ERROR(dbh) _firebird_error(dbh, NULL, __FILE__, __LINE__ TSRMLS_CC)
98 static int firebird_handle_closer(pdo_dbh_t *dbh TSRMLS_DC) /* {{{ */
100 pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data;
102 if (dbh->in_txn) {
103 if (dbh->auto_commit) {
105 RECORD_ERROR(dbh);
135 firebird_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, pdo_stmt_t *stmt, zval *driver_options TSRMLS_DC) argument
221 firebird_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len TSRMLS_DC) argument
275 firebird_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type paramtype TSRMLS_DC) argument
394 firebird_alloc_prepare_stmt(pdo_dbh_t *dbh, const char *sql, long sql_len, XSQLDA *out_sqlda, isc_stmt_handle *s, HashTable *named_params TSRMLS_DC) argument
472 firebird_handle_set_attribute(pdo_dbh_t *dbh, long attr, zval *val TSRMLS_DC) argument
547 firebird_handle_get_attribute(pdo_dbh_t *dbh, long attr, zval *val TSRMLS_DC) argument
603 pdo_firebird_fetch_error_func(pdo_dbh_t *dbh, pdo_stmt_t *stmt, zval *info TSRMLS_DC) argument
643 pdo_firebird_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_DC) argument
[all...]

Completed in 30 milliseconds