Lines Matching refs:H
36 pdo_odbc_db_handle *H = (pdo_odbc_db_handle *)dbh->driver_data; in pdo_odbc_fetch_error_func() local
37 pdo_odbc_errinfo *einfo = &H->einfo; in pdo_odbc_fetch_error_func()
65 pdo_odbc_db_handle *H = (pdo_odbc_db_handle*)dbh->driver_data; in pdo_odbc_error() local
66 pdo_odbc_errinfo *einfo = &H->einfo; in pdo_odbc_error()
84 } else if (H->dbc) { in pdo_odbc_error()
86 eh = H->dbc; in pdo_odbc_error()
89 eh = H->env; in pdo_odbc_error()
129 pdo_odbc_db_handle *H = (pdo_odbc_db_handle*)dbh->driver_data; in odbc_handle_closer() local
131 if (H->dbc != SQL_NULL_HANDLE) { in odbc_handle_closer()
132 SQLEndTran(SQL_HANDLE_DBC, H->dbc, SQL_ROLLBACK); in odbc_handle_closer()
133 SQLDisconnect(H->dbc); in odbc_handle_closer()
134 SQLFreeHandle(SQL_HANDLE_DBC, H->dbc); in odbc_handle_closer()
135 H->dbc = NULL; in odbc_handle_closer()
137 SQLFreeHandle(SQL_HANDLE_ENV, H->env); in odbc_handle_closer()
138 H->env = NULL; in odbc_handle_closer()
139 pefree(H, dbh->is_persistent); in odbc_handle_closer()
148 pdo_odbc_db_handle *H = (pdo_odbc_db_handle *)dbh->driver_data; in odbc_handle_preparer() local
155 S->H = H; in odbc_handle_preparer()
156 S->assume_utf8 = H->assume_utf8; in odbc_handle_preparer()
173 rc = SQLAllocHandle(SQL_HANDLE_STMT, H->dbc, &S->stmt); in odbc_handle_preparer()
209 strcpy(H->einfo.last_err_msg, S->einfo.last_err_msg); in odbc_handle_preparer()
210 H->einfo.file = S->einfo.file; in odbc_handle_preparer()
211 H->einfo.line = S->einfo.line; in odbc_handle_preparer()
212 H->einfo.what = S->einfo.what; in odbc_handle_preparer()
225 pdo_odbc_db_handle *H = (pdo_odbc_db_handle *)dbh->driver_data; in odbc_handle_doer() local
230 rc = SQLAllocHandle(SQL_HANDLE_STMT, H->dbc, &stmt); in odbc_handle_doer()
276 pdo_odbc_db_handle *H = (pdo_odbc_db_handle *)dbh->driver_data; in odbc_handle_begin() local
278 …rc = SQLSetConnectAttr(H->dbc, SQL_ATTR_AUTOCOMMIT, (SQLPOINTER)SQL_AUTOCOMMIT_OFF, SQL_IS_INTEGER… in odbc_handle_begin()
289 pdo_odbc_db_handle *H = (pdo_odbc_db_handle *)dbh->driver_data; in odbc_handle_commit() local
292 rc = SQLEndTran(SQL_HANDLE_DBC, H->dbc, SQL_COMMIT); in odbc_handle_commit()
304 …rc = SQLSetConnectAttr(H->dbc, SQL_ATTR_AUTOCOMMIT, (SQLPOINTER)SQL_AUTOCOMMIT_ON, SQL_IS_INTEGER); in odbc_handle_commit()
315 pdo_odbc_db_handle *H = (pdo_odbc_db_handle *)dbh->driver_data; in odbc_handle_rollback() local
318 rc = SQLEndTran(SQL_HANDLE_DBC, H->dbc, SQL_ROLLBACK); in odbc_handle_rollback()
327 if (dbh->auto_commit && H->dbc) { in odbc_handle_rollback()
329 …rc = SQLSetConnectAttr(H->dbc, SQL_ATTR_AUTOCOMMIT, (SQLPOINTER)SQL_AUTOCOMMIT_ON, SQL_IS_INTEGER); in odbc_handle_rollback()
341 pdo_odbc_db_handle *H = (pdo_odbc_db_handle *)dbh->driver_data; in odbc_handle_set_attr() local
344 H->assume_utf8 = zval_is_true(val); in odbc_handle_set_attr()
347 strcpy(H->einfo.last_err_msg, "Unknown Attribute"); in odbc_handle_set_attr()
348 H->einfo.what = "setAttribute"; in odbc_handle_set_attr()
349 strcpy(H->einfo.last_state, "IM001"); in odbc_handle_set_attr()
356 pdo_odbc_db_handle *H = (pdo_odbc_db_handle *)dbh->driver_data; in odbc_handle_get_attr() local
369 ZVAL_BOOL(val, H->assume_utf8 ? 1 : 0); in odbc_handle_get_attr()
393 pdo_odbc_db_handle *H; in pdo_odbc_handle_factory() local
398 H = pecalloc(1, sizeof(*H), dbh->is_persistent); in pdo_odbc_handle_factory()
400 dbh->driver_data = H; in pdo_odbc_handle_factory()
402 SQLAllocHandle(SQL_HANDLE_ENV, SQL_NULL_HANDLE, &H->env); in pdo_odbc_handle_factory()
403 rc = SQLSetEnvAttr(H->env, SQL_ATTR_ODBC_VERSION, (void*)SQL_OV_ODBC3, 0); in pdo_odbc_handle_factory()
412 rc = SQLSetEnvAttr(H->env, SQL_ATTR_CP_MATCH, (void*)pdo_odbc_pool_mode, 0); in pdo_odbc_handle_factory()
420 rc = SQLAllocHandle(SQL_HANDLE_DBC, H->env, &H->dbc); in pdo_odbc_handle_factory()
426 rc = SQLSetConnectAttr(H->dbc, SQL_ATTR_AUTOCOMMIT, in pdo_odbc_handle_factory()
435 rc = SQLSetConnectAttr(H->dbc, SQL_ODBC_CURSORS, (void*)cursor_lib, SQL_IS_INTEGER); in pdo_odbc_handle_factory()
456 rc = SQLDriverConnect(H->dbc, NULL, (char*)dbh->data_source, strlen(dbh->data_source), in pdo_odbc_handle_factory()
460 …rc = SQLConnect(H->dbc, (char*)dbh->data_source, SQL_NTS, dbh->username, SQL_NTS, dbh->password, S… in pdo_odbc_handle_factory()