Lines Matching refs:dbh
34 static void dblib_fetch_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, zval *info) in dblib_fetch_error() argument
36 pdo_dblib_db_handle *H = (pdo_dblib_db_handle *)dbh->driver_data; in dblib_fetch_error()
75 static void dblib_handle_closer(pdo_dbh_t *dbh) in dblib_handle_closer() argument
77 pdo_dblib_db_handle *H = (pdo_dblib_db_handle *)dbh->driver_data; in dblib_handle_closer()
89 pefree(H, dbh->is_persistent); in dblib_handle_closer()
90 dbh->driver_data = NULL; in dblib_handle_closer()
94 static bool dblib_handle_preparer(pdo_dbh_t *dbh, zend_string *sql, pdo_stmt_t *stmt, zval *driver_… in dblib_handle_preparer() argument
96 pdo_dblib_db_handle *H = (pdo_dblib_db_handle *)dbh->driver_data; in dblib_handle_preparer()
109 static zend_long dblib_handle_doer(pdo_dbh_t *dbh, const zend_string *sql) in dblib_handle_doer() argument
111 pdo_dblib_db_handle *H = (pdo_dblib_db_handle *)dbh->driver_data; in dblib_handle_doer()
145 static zend_string* dblib_handle_quoter(pdo_dbh_t *dbh, const zend_string *unquoted, enum pdo_param… in dblib_handle_quoter() argument
147 pdo_dblib_db_handle *H = (pdo_dblib_db_handle *)dbh->driver_data; in dblib_handle_quoter()
201 static bool pdo_dblib_transaction_cmd(const char *cmd, pdo_dbh_t *dbh) in pdo_dblib_transaction_cmd() argument
203 pdo_dblib_db_handle *H = (pdo_dblib_db_handle *)dbh->driver_data; in pdo_dblib_transaction_cmd()
216 static bool dblib_handle_begin(pdo_dbh_t *dbh) in dblib_handle_begin() argument
218 return pdo_dblib_transaction_cmd("BEGIN TRANSACTION", dbh); in dblib_handle_begin()
221 static bool dblib_handle_commit(pdo_dbh_t *dbh) in dblib_handle_commit() argument
223 return pdo_dblib_transaction_cmd("COMMIT TRANSACTION", dbh); in dblib_handle_commit()
226 static bool dblib_handle_rollback(pdo_dbh_t *dbh) in dblib_handle_rollback() argument
228 return pdo_dblib_transaction_cmd("ROLLBACK TRANSACTION", dbh); in dblib_handle_rollback()
231 zend_string *dblib_handle_last_id(pdo_dbh_t *dbh, const zend_string *name) in dblib_handle_last_id() argument
233 pdo_dblib_db_handle *H = (pdo_dblib_db_handle *)dbh->driver_data; in dblib_handle_last_id()
279 static bool dblib_set_attr(pdo_dbh_t *dbh, zend_long attr, zval *val) in dblib_set_attr() argument
281 pdo_dblib_db_handle *H = (pdo_dblib_db_handle *)dbh->driver_data; in dblib_set_attr()
388 static int dblib_get_attribute(pdo_dbh_t *dbh, zend_long attr, zval *return_value) in dblib_get_attribute() argument
390 pdo_dblib_db_handle *H = (pdo_dblib_db_handle *)dbh->driver_data; in dblib_get_attribute()
449 static int pdo_dblib_handle_factory(pdo_dbh_t *dbh, zval *driver_options) in pdo_dblib_handle_factory() argument
492 php_pdo_parse_data_source(dbh->data_source, dbh->data_source_len, vars, nvars); in pdo_dblib_handle_factory()
494 H = pecalloc(1, sizeof(*H), dbh->is_persistent); in pdo_dblib_handle_factory()
496 H->err.sqlstate = dbh->error_code; in pdo_dblib_handle_factory()
534 …pdo_raise_impl_error(dbh, NULL, "HY000", "PDO_DBLIB: Failed to set version specified in connection… in pdo_dblib_handle_factory()
543 …pdo_raise_impl_error(dbh, NULL, "HY000", "PDO_DBLIB: Invalid version specified in connection strin… in pdo_dblib_handle_factory()
548 if (!dbh->username && vars[6].optval) { in pdo_dblib_handle_factory()
549 dbh->username = pestrdup(vars[6].optval, dbh->is_persistent); in pdo_dblib_handle_factory()
552 if (dbh->username) { in pdo_dblib_handle_factory()
553 if(FAIL == DBSETLUSER(H->login, dbh->username)) { in pdo_dblib_handle_factory()
558 if (!dbh->password && vars[7].optval) { in pdo_dblib_handle_factory()
559 dbh->password = pestrdup(vars[7].optval, dbh->is_persistent); in pdo_dblib_handle_factory()
562 if (dbh->password) { in pdo_dblib_handle_factory()
563 if(FAIL == DBSETLPWD(H->login, dbh->password)) { in pdo_dblib_handle_factory()
611 dbh->max_escaped_char_length = 2; in pdo_dblib_handle_factory()
612 dbh->alloc_own_columns = 1; in pdo_dblib_handle_factory()
621 dbh->methods = &dblib_methods; in pdo_dblib_handle_factory()
622 dbh->driver_data = H; in pdo_dblib_handle_factory()