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()
195 static bool pdo_dblib_transaction_cmd(const char *cmd, pdo_dbh_t *dbh) in pdo_dblib_transaction_cmd() argument
197 pdo_dblib_db_handle *H = (pdo_dblib_db_handle *)dbh->driver_data; in pdo_dblib_transaction_cmd()
210 static bool dblib_handle_begin(pdo_dbh_t *dbh) in dblib_handle_begin() argument
212 return pdo_dblib_transaction_cmd("BEGIN TRANSACTION", dbh); in dblib_handle_begin()
215 static bool dblib_handle_commit(pdo_dbh_t *dbh) in dblib_handle_commit() argument
217 return pdo_dblib_transaction_cmd("COMMIT TRANSACTION", dbh); in dblib_handle_commit()
220 static bool dblib_handle_rollback(pdo_dbh_t *dbh) in dblib_handle_rollback() argument
222 return pdo_dblib_transaction_cmd("ROLLBACK TRANSACTION", dbh); in dblib_handle_rollback()
225 zend_string *dblib_handle_last_id(pdo_dbh_t *dbh, const zend_string *name) in dblib_handle_last_id() argument
227 pdo_dblib_db_handle *H = (pdo_dblib_db_handle *)dbh->driver_data; in dblib_handle_last_id()
273 static bool dblib_set_attr(pdo_dbh_t *dbh, zend_long attr, zval *val) in dblib_set_attr() argument
275 pdo_dblib_db_handle *H = (pdo_dblib_db_handle *)dbh->driver_data; in dblib_set_attr()
382 static int dblib_get_attribute(pdo_dbh_t *dbh, zend_long attr, zval *return_value) in dblib_get_attribute() argument
384 pdo_dblib_db_handle *H = (pdo_dblib_db_handle *)dbh->driver_data; in dblib_get_attribute()
442 static int pdo_dblib_handle_factory(pdo_dbh_t *dbh, zval *driver_options) in pdo_dblib_handle_factory() argument
485 php_pdo_parse_data_source(dbh->data_source, dbh->data_source_len, vars, nvars); in pdo_dblib_handle_factory()
487 H = pecalloc(1, sizeof(*H), dbh->is_persistent); in pdo_dblib_handle_factory()
489 H->err.sqlstate = dbh->error_code; in pdo_dblib_handle_factory()
527 …pdo_raise_impl_error(dbh, NULL, "HY000", "PDO_DBLIB: Failed to set version specified in connection… in pdo_dblib_handle_factory()
536 …pdo_raise_impl_error(dbh, NULL, "HY000", "PDO_DBLIB: Invalid version specified in connection strin… in pdo_dblib_handle_factory()
541 if (!dbh->username && vars[6].optval) { in pdo_dblib_handle_factory()
542 dbh->username = pestrdup(vars[6].optval, dbh->is_persistent); in pdo_dblib_handle_factory()
545 if (dbh->username) { in pdo_dblib_handle_factory()
546 if(FAIL == DBSETLUSER(H->login, dbh->username)) { in pdo_dblib_handle_factory()
551 if (!dbh->password && vars[7].optval) { in pdo_dblib_handle_factory()
552 dbh->password = pestrdup(vars[7].optval, dbh->is_persistent); in pdo_dblib_handle_factory()
555 if (dbh->password) { in pdo_dblib_handle_factory()
556 if(FAIL == DBSETLPWD(H->login, dbh->password)) { in pdo_dblib_handle_factory()
604 dbh->max_escaped_char_length = 2; in pdo_dblib_handle_factory()
605 dbh->alloc_own_columns = 1; in pdo_dblib_handle_factory()
614 dbh->methods = &dblib_methods; in pdo_dblib_handle_factory()
615 dbh->driver_data = H; in pdo_dblib_handle_factory()