Lines Matching refs:dbh

32 static void pdo_oci_fetch_error_func(pdo_dbh_t *dbh, pdo_stmt_t *stmt, zval *info) /* {{{ */  in pdo_oci_fetch_error_func()  argument
34 pdo_oci_db_handle *H = (pdo_oci_db_handle *)dbh->driver_data; in pdo_oci_fetch_error_func()
54 ub4 _oci_error(OCIError *err, pdo_dbh_t *dbh, pdo_stmt_t *stmt, char *what, sword status, int isini… in _oci_error() argument
58 pdo_oci_db_handle *H = (pdo_oci_db_handle *)dbh->driver_data; in _oci_error()
61 pdo_error_type *pdo_err = &dbh->error_code; in _oci_error()
73 pefree(einfo->errmsg, dbh->is_persistent); in _oci_error()
84 einfo->errmsg = pestrdup(tmp_buf, dbh->is_persistent); in _oci_error()
94 einfo->errmsg = pestrdup(tmp_buf, dbh->is_persistent); in _oci_error()
99 einfo->errmsg = pestrdup(tmp_buf, dbh->is_persistent); in _oci_error()
103 einfo->errmsg = pestrdup(tmp_buf, dbh->is_persistent); in _oci_error()
107 einfo->errmsg = pestrdup(tmp_buf, dbh->is_persistent); in _oci_error()
111 einfo->errmsg = pestrdup(tmp_buf, dbh->is_persistent); in _oci_error()
115 einfo->errmsg = pestrdup(tmp_buf, dbh->is_persistent); in _oci_error()
119 einfo->errmsg = pestrdup(tmp_buf, dbh->is_persistent); in _oci_error()
154 dbh->is_closed = 1; in _oci_error()
169 pefree(H->einfo.errmsg, dbh->is_persistent); in _oci_error()
172 H->einfo.errmsg = einfo->errmsg ? pestrdup(einfo->errmsg, dbh->is_persistent) : NULL; in _oci_error()
173 strcpy(dbh->error_code, stmt->error_code); in _oci_error()
178 if (!dbh->methods && status != OCI_SUCCESS_WITH_INFO) { in _oci_error()
186 static void oci_handle_closer(pdo_dbh_t *dbh) /* {{{ */ in oci_handle_closer() argument
188 pdo_oci_db_handle *H = (pdo_oci_db_handle *)dbh->driver_data; in oci_handle_closer()
229 pefree(H->einfo.errmsg, dbh->is_persistent); in oci_handle_closer()
233 pefree(H, dbh->is_persistent); in oci_handle_closer()
237 static bool oci_handle_preparer(pdo_dbh_t *dbh, zend_string *sql, pdo_stmt_t *stmt, zval *driver_op… in oci_handle_preparer() argument
239 pdo_oci_db_handle *H = (pdo_oci_db_handle *)dbh->driver_data; in oci_handle_preparer()
262 strcpy(dbh->error_code, stmt->error_code); in oci_handle_preparer()
309 static zend_long oci_handle_doer(pdo_dbh_t *dbh, const zend_string *sql) /* {{{ */ in oci_handle_doer() argument
311 pdo_oci_db_handle *H = (pdo_oci_db_handle *)dbh->driver_data; in oci_handle_doer()
337 (dbh->auto_commit && !dbh->in_txn) ? OCI_COMMIT_ON_SUCCESS : OCI_DEFAULT); in oci_handle_doer()
357 static zend_string* oci_handle_quoter(pdo_dbh_t *dbh, const zend_string *unquoted, enum pdo_param_t… in oci_handle_quoter() argument
395 static bool oci_handle_begin(pdo_dbh_t *dbh) /* {{{ */ in oci_handle_begin() argument
402 static bool oci_handle_commit(pdo_dbh_t *dbh) /* {{{ */ in oci_handle_commit() argument
404 pdo_oci_db_handle *H = (pdo_oci_db_handle *)dbh->driver_data; in oci_handle_commit()
416 static bool oci_handle_rollback(pdo_dbh_t *dbh) /* {{{ */ in oci_handle_rollback() argument
418 pdo_oci_db_handle *H = (pdo_oci_db_handle *)dbh->driver_data; in oci_handle_rollback()
430 static bool oci_handle_set_attribute(pdo_dbh_t *dbh, zend_long attr, zval *val) /* {{{ */ in oci_handle_set_attribute() argument
433 pdo_oci_db_handle *H = (pdo_oci_db_handle *)dbh->driver_data; in oci_handle_set_attribute()
443 if (dbh->in_txn) { in oci_handle_set_attribute()
451 dbh->in_txn = false; in oci_handle_set_attribute()
454 dbh->auto_commit = (unsigned int) bval; in oci_handle_set_attribute()
578 static int oci_handle_get_attribute(pdo_dbh_t *dbh, zend_long attr, zval *return_value) /* {{{ */ in oci_handle_get_attribute() argument
580 pdo_oci_db_handle *H = (pdo_oci_db_handle *)dbh->driver_data; in oci_handle_get_attribute()
632 ZVAL_BOOL(return_value, dbh->auto_commit); in oci_handle_get_attribute()
667 static zend_result pdo_oci_check_liveness(pdo_dbh_t *dbh) /* {{{ */ in pdo_oci_check_liveness() argument
669 pdo_oci_db_handle *H = (pdo_oci_db_handle *)dbh->driver_data; in pdo_oci_check_liveness()
725 static int pdo_oci_handle_factory(pdo_dbh_t *dbh, zval *driver_options) /* {{{ */ in pdo_oci_handle_factory() argument
736 php_pdo_parse_data_source(dbh->data_source, dbh->data_source_len, vars, 4); in pdo_oci_handle_factory()
738 H = pecalloc(1, sizeof(*H), dbh->is_persistent); in pdo_oci_handle_factory()
739 dbh->driver_data = H; in pdo_oci_handle_factory()
741 dbh->skip_param_evt = in pdo_oci_handle_factory()
805 if (!dbh->username && vars[2].optval) { in pdo_oci_handle_factory()
806 dbh->username = pestrdup(vars[2].optval, dbh->is_persistent); in pdo_oci_handle_factory()
809 if (dbh->username) { in pdo_oci_handle_factory()
811 dbh->username, (ub4) strlen(dbh->username), in pdo_oci_handle_factory()
820 if (!dbh->password && vars[3].optval) { in pdo_oci_handle_factory()
821 dbh->password = pestrdup(vars[3].optval, dbh->is_persistent); in pdo_oci_handle_factory()
824 if (dbh->password) { in pdo_oci_handle_factory()
826 dbh->password, (ub4) strlen(dbh->password), in pdo_oci_handle_factory()
860 dbh->methods = &oci_methods; in pdo_oci_handle_factory()
861 dbh->alloc_own_columns = 1; in pdo_oci_handle_factory()
862 dbh->native_case = PDO_CASE_UPPER; in pdo_oci_handle_factory()
874 oci_handle_closer(dbh); in pdo_oci_handle_factory()