Lines Matching refs:dbh

36 static int pdo_oci_fetch_error_func(pdo_dbh_t *dbh, pdo_stmt_t *stmt, zval *info TSRMLS_DC) /* {{{ …  in pdo_oci_fetch_error_func()  argument
38 pdo_oci_db_handle *H = (pdo_oci_db_handle *)dbh->driver_data; in pdo_oci_fetch_error_func()
60 ub4 _oci_error(OCIError *err, pdo_dbh_t *dbh, pdo_stmt_t *stmt, char *what, sword status, int isini… in _oci_error() argument
64 pdo_oci_db_handle *H = (pdo_oci_db_handle *)dbh->driver_data; in _oci_error()
67 pdo_error_type *pdo_err = &dbh->error_code; in _oci_error()
79 pefree(einfo->errmsg, dbh->is_persistent); in _oci_error()
90 einfo->errmsg = pestrdup(tmp_buf, dbh->is_persistent); in _oci_error()
100 einfo->errmsg = pestrdup(tmp_buf, dbh->is_persistent); in _oci_error()
105 einfo->errmsg = pestrdup(tmp_buf, dbh->is_persistent); in _oci_error()
109 einfo->errmsg = pestrdup(tmp_buf, dbh->is_persistent); in _oci_error()
113 einfo->errmsg = pestrdup(tmp_buf, dbh->is_persistent); in _oci_error()
117 einfo->errmsg = pestrdup(tmp_buf, dbh->is_persistent); in _oci_error()
121 einfo->errmsg = pestrdup(tmp_buf, dbh->is_persistent); in _oci_error()
125 einfo->errmsg = pestrdup(tmp_buf, dbh->is_persistent); in _oci_error()
166 dbh->is_closed = 1; in _oci_error()
181 pefree(H->einfo.errmsg, dbh->is_persistent); in _oci_error()
184 H->einfo.errmsg = einfo->errmsg ? pestrdup(einfo->errmsg, dbh->is_persistent) : NULL; in _oci_error()
185 strcpy(dbh->error_code, stmt->error_code); in _oci_error()
190 if (!dbh->methods) { in _oci_error()
198 static int oci_handle_closer(pdo_dbh_t *dbh TSRMLS_DC) /* {{{ */ in oci_handle_closer()
200 pdo_oci_db_handle *H = (pdo_oci_db_handle *)dbh->driver_data; in oci_handle_closer()
241 pefree(H->einfo.errmsg, dbh->is_persistent); in oci_handle_closer()
245 pefree(H, dbh->is_persistent); in oci_handle_closer()
251 static int oci_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, pdo_stmt_t *stmt, zva… in oci_handle_preparer() argument
253 pdo_oci_db_handle *H = (pdo_oci_db_handle *)dbh->driver_data; in oci_handle_preparer()
278 strcpy(dbh->error_code, stmt->error_code); in oci_handle_preparer()
327 static long oci_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len TSRMLS_DC) /* {{{ */ in oci_handle_doer() argument
329 pdo_oci_db_handle *H = (pdo_oci_db_handle *)dbh->driver_data; in oci_handle_doer()
355 (dbh->auto_commit && !dbh->in_txn) ? OCI_COMMIT_ON_SUCCESS : OCI_DEFAULT); in oci_handle_doer()
371 static int oci_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, … in oci_handle_quoter() argument
408 static int oci_handle_begin(pdo_dbh_t *dbh TSRMLS_DC) /* {{{ */ in oci_handle_begin()
415 static int oci_handle_commit(pdo_dbh_t *dbh TSRMLS_DC) /* {{{ */ in oci_handle_commit()
417 pdo_oci_db_handle *H = (pdo_oci_db_handle *)dbh->driver_data; in oci_handle_commit()
429 static int oci_handle_rollback(pdo_dbh_t *dbh TSRMLS_DC) /* {{{ */ in oci_handle_rollback()
431 pdo_oci_db_handle *H = (pdo_oci_db_handle *)dbh->driver_data; in oci_handle_rollback()
443 static int oci_handle_set_attribute(pdo_dbh_t *dbh, long attr, zval *val TSRMLS_DC) /* {{{ */ in oci_handle_set_attribute() argument
445 pdo_oci_db_handle *H = (pdo_oci_db_handle *)dbh->driver_data; in oci_handle_set_attribute()
448 if (dbh->in_txn) { in oci_handle_set_attribute()
456 dbh->in_txn = 0; in oci_handle_set_attribute()
461 dbh->auto_commit = Z_LVAL_P(val); in oci_handle_set_attribute()
470 static int oci_handle_get_attribute(pdo_dbh_t *dbh, long attr, zval *return_value TSRMLS_DC) /* {{… in oci_handle_get_attribute() argument
472 pdo_oci_db_handle *H = (pdo_oci_db_handle *)dbh->driver_data; in oci_handle_get_attribute()
524 ZVAL_BOOL(return_value, dbh->auto_commit); in oci_handle_get_attribute()
536 static int pdo_oci_check_liveness(pdo_dbh_t *dbh TSRMLS_DC) /* {{{ */ in pdo_oci_check_liveness()
538 pdo_oci_db_handle *H = (pdo_oci_db_handle *)dbh->driver_data; in pdo_oci_check_liveness()
591 static int pdo_oci_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_DC) /* {{{ */ in pdo_oci_handle_factory() argument
600 php_pdo_parse_data_source(dbh->data_source, dbh->data_source_len, vars, 2); in pdo_oci_handle_factory()
602 H = pecalloc(1, sizeof(*H), dbh->is_persistent); in pdo_oci_handle_factory()
603 dbh->driver_data = H; in pdo_oci_handle_factory()
662 if (dbh->username) { in pdo_oci_handle_factory()
664 dbh->username, strlen(dbh->username), in pdo_oci_handle_factory()
673 if (dbh->password) { in pdo_oci_handle_factory()
675 dbh->password, strlen(dbh->password), in pdo_oci_handle_factory()
697 dbh->methods = &oci_methods; in pdo_oci_handle_factory()
698 dbh->alloc_own_columns = 1; in pdo_oci_handle_factory()
699 dbh->native_case = PDO_CASE_UPPER; in pdo_oci_handle_factory()
711 oci_handle_closer(dbh TSRMLS_CC); in pdo_oci_handle_factory()