Lines Matching refs:dbh
38 static int dblib_fetch_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, zval *info TSRMLS_DC) in dblib_fetch_error() argument
40 pdo_dblib_db_handle *H = (pdo_dblib_db_handle *)dbh->driver_data; in dblib_fetch_error()
75 static int dblib_handle_closer(pdo_dbh_t *dbh TSRMLS_DC) in dblib_handle_closer()
77 pdo_dblib_db_handle *H = (pdo_dblib_db_handle *)dbh->driver_data; in dblib_handle_closer()
88 pefree(H, dbh->is_persistent); in dblib_handle_closer()
89 dbh->driver_data = NULL; in dblib_handle_closer()
94 static int dblib_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, pdo_stmt_t *stmt, z… in dblib_handle_preparer() argument
96 pdo_dblib_db_handle *H = (pdo_dblib_db_handle *)dbh->driver_data; in dblib_handle_preparer()
108 static long dblib_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len TSRMLS_DC) in dblib_handle_doer() argument
110 pdo_dblib_db_handle *H = (pdo_dblib_db_handle *)dbh->driver_data; in dblib_handle_doer()
144 static int dblib_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted… in dblib_handle_quoter() argument
146 pdo_dblib_db_handle *H = (pdo_dblib_db_handle *)dbh->driver_data; in dblib_handle_quoter()
172 static int pdo_dblib_transaction_cmd(const char *cmd, pdo_dbh_t *dbh TSRMLS_DC) in pdo_dblib_transaction_cmd()
174 pdo_dblib_db_handle *H = (pdo_dblib_db_handle *)dbh->driver_data; in pdo_dblib_transaction_cmd()
188 static int dblib_handle_begin(pdo_dbh_t *dbh TSRMLS_DC) in dblib_handle_begin()
190 return pdo_dblib_transaction_cmd("BEGIN TRANSACTION", dbh TSRMLS_CC); in dblib_handle_begin()
193 static int dblib_handle_commit(pdo_dbh_t *dbh TSRMLS_DC) in dblib_handle_commit()
195 return pdo_dblib_transaction_cmd("COMMIT TRANSACTION", dbh TSRMLS_CC); in dblib_handle_commit()
198 static int dblib_handle_rollback(pdo_dbh_t *dbh TSRMLS_DC) in dblib_handle_rollback()
200 return pdo_dblib_transaction_cmd("ROLLBACK TRANSACTION", dbh TSRMLS_CC); in dblib_handle_rollback()
203 char *dblib_handle_last_id(pdo_dbh_t *dbh, const char *name, unsigned int *len TSRMLS_DC) in dblib_handle_last_id() argument
205 pdo_dblib_db_handle *H = (pdo_dblib_db_handle *)dbh->driver_data; in dblib_handle_last_id()
265 static int pdo_dblib_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_DC) in pdo_dblib_handle_factory() argument
307 php_pdo_parse_data_source(dbh->data_source, dbh->data_source_len, vars, nvars); in pdo_dblib_handle_factory()
309 H = pecalloc(1, sizeof(*H), dbh->is_persistent); in pdo_dblib_handle_factory()
311 H->err.sqlstate = dbh->error_code; in pdo_dblib_handle_factory()
324 …pdo_raise_impl_error(dbh, NULL, "HY000", "PDO_DBLIB: Failed to set version specified in connection… in pdo_dblib_handle_factory()
333 …pdo_raise_impl_error(dbh, NULL, "HY000", "PDO_DBLIB: Invalid version specified in connection strin… in pdo_dblib_handle_factory()
338 if (dbh->username) { in pdo_dblib_handle_factory()
339 if(FAIL == DBSETLUSER(H->login, dbh->username)) { in pdo_dblib_handle_factory()
344 if (dbh->password) { in pdo_dblib_handle_factory()
345 if(FAIL == DBSETLPWD(H->login, dbh->password)) { in pdo_dblib_handle_factory()
393 dbh->max_escaped_char_length = 2; in pdo_dblib_handle_factory()
394 dbh->alloc_own_columns = 1; in pdo_dblib_handle_factory()
403 dbh->methods = &dblib_methods; in pdo_dblib_handle_factory()
404 dbh->driver_data = H; in pdo_dblib_handle_factory()