Lines Matching refs:H
34 pdo_odbc_db_handle *H = (pdo_odbc_db_handle *)dbh->driver_data; in pdo_odbc_fetch_error_func() local
35 pdo_odbc_errinfo *einfo = &H->einfo; in pdo_odbc_fetch_error_func()
61 pdo_odbc_db_handle *H = (pdo_odbc_db_handle*)dbh->driver_data; in pdo_odbc_error() local
62 pdo_odbc_errinfo *einfo = &H->einfo; in pdo_odbc_error()
80 } else if (H->dbc) { in pdo_odbc_error()
82 eh = H->dbc; in pdo_odbc_error()
85 eh = H->env; in pdo_odbc_error()
125 pdo_odbc_db_handle *H = (pdo_odbc_db_handle*)dbh->driver_data; in odbc_handle_closer() local
127 if (H->dbc != SQL_NULL_HANDLE) { in odbc_handle_closer()
128 SQLEndTran(SQL_HANDLE_DBC, H->dbc, SQL_ROLLBACK); in odbc_handle_closer()
129 SQLDisconnect(H->dbc); in odbc_handle_closer()
130 SQLFreeHandle(SQL_HANDLE_DBC, H->dbc); in odbc_handle_closer()
131 H->dbc = NULL; in odbc_handle_closer()
133 SQLFreeHandle(SQL_HANDLE_ENV, H->env); in odbc_handle_closer()
134 H->env = NULL; in odbc_handle_closer()
135 pefree(H, dbh->is_persistent); in odbc_handle_closer()
142 pdo_odbc_db_handle *H = (pdo_odbc_db_handle *)dbh->driver_data; in odbc_handle_preparer() local
148 S->H = H; in odbc_handle_preparer()
149 S->assume_utf8 = H->assume_utf8; in odbc_handle_preparer()
166 rc = SQLAllocHandle(SQL_HANDLE_STMT, H->dbc, &S->stmt); in odbc_handle_preparer()
203 strcpy(H->einfo.last_err_msg, S->einfo.last_err_msg); in odbc_handle_preparer()
204 H->einfo.file = S->einfo.file; in odbc_handle_preparer()
205 H->einfo.line = S->einfo.line; in odbc_handle_preparer()
206 H->einfo.what = S->einfo.what; in odbc_handle_preparer()
219 pdo_odbc_db_handle *H = (pdo_odbc_db_handle *)dbh->driver_data; in odbc_handle_doer() local
224 rc = SQLAllocHandle(SQL_HANDLE_STMT, H->dbc, &stmt); in odbc_handle_doer()
272 pdo_odbc_db_handle *H = (pdo_odbc_db_handle *)dbh->driver_data; in odbc_handle_begin() local
274 …rc = SQLSetConnectAttr(H->dbc, SQL_ATTR_AUTOCOMMIT, (SQLPOINTER)SQL_AUTOCOMMIT_OFF, SQL_IS_INTEGER… in odbc_handle_begin()
285 pdo_odbc_db_handle *H = (pdo_odbc_db_handle *)dbh->driver_data; in odbc_handle_commit() local
288 rc = SQLEndTran(SQL_HANDLE_DBC, H->dbc, SQL_COMMIT); in odbc_handle_commit()
300 …rc = SQLSetConnectAttr(H->dbc, SQL_ATTR_AUTOCOMMIT, (SQLPOINTER)SQL_AUTOCOMMIT_ON, SQL_IS_INTEGER); in odbc_handle_commit()
311 pdo_odbc_db_handle *H = (pdo_odbc_db_handle *)dbh->driver_data; in odbc_handle_rollback() local
314 rc = SQLEndTran(SQL_HANDLE_DBC, H->dbc, SQL_ROLLBACK); in odbc_handle_rollback()
323 if (dbh->auto_commit && H->dbc) { in odbc_handle_rollback()
325 …rc = SQLSetConnectAttr(H->dbc, SQL_ATTR_AUTOCOMMIT, (SQLPOINTER)SQL_AUTOCOMMIT_ON, SQL_IS_INTEGER); in odbc_handle_rollback()
337 pdo_odbc_db_handle *H = (pdo_odbc_db_handle *)dbh->driver_data; in odbc_handle_set_attr() local
345 H->assume_utf8 = bval; in odbc_handle_set_attr()
358 H->dbc, in odbc_handle_set_attr()
372 strcpy(H->einfo.last_err_msg, "Unknown Attribute"); in odbc_handle_set_attr()
373 H->einfo.what = "setAttribute"; in odbc_handle_set_attr()
374 strcpy(H->einfo.last_state, "IM001"); in odbc_handle_set_attr()
384 pdo_odbc_db_handle *H = (pdo_odbc_db_handle *)dbh->driver_data; in pdo_odbc_get_info_string() local
385 rc = SQLGetInfo(H->dbc, type, (SQLPOINTER)buf, sizeof(buf), &out_len); in pdo_odbc_get_info_string()
396 pdo_odbc_db_handle *H = (pdo_odbc_db_handle *)dbh->driver_data; in odbc_handle_get_attr() local
411 ZVAL_BOOL(val, H->assume_utf8); in odbc_handle_get_attr()
426 pdo_odbc_db_handle *H = (pdo_odbc_db_handle *)dbh->driver_data; in odbc_handle_check_liveness() local
428 ret = SQLGetConnectAttr(H->dbc, SQL_ATTR_CONNECTION_DEAD, &dead, 0, NULL); in odbc_handle_check_liveness()
439 ret = SQLGetInfo(H->dbc, SQL_DATA_SOURCE_READ_ONLY, d_name, in odbc_handle_check_liveness()
470 pdo_odbc_db_handle *H; in pdo_odbc_handle_factory() local
475 H = pecalloc(1, sizeof(*H), dbh->is_persistent); in pdo_odbc_handle_factory()
477 dbh->driver_data = H; in pdo_odbc_handle_factory()
479 rc = SQLAllocHandle(SQL_HANDLE_ENV, SQL_NULL_HANDLE, &H->env); in pdo_odbc_handle_factory()
485 rc = SQLSetEnvAttr(H->env, SQL_ATTR_ODBC_VERSION, (void*)SQL_OV_ODBC3, 0); in pdo_odbc_handle_factory()
494 rc = SQLSetEnvAttr(H->env, SQL_ATTR_CP_MATCH, (void*)pdo_odbc_pool_mode, 0); in pdo_odbc_handle_factory()
502 rc = SQLAllocHandle(SQL_HANDLE_DBC, H->env, &H->dbc); in pdo_odbc_handle_factory()
508 rc = SQLSetConnectAttr(H->dbc, SQL_ATTR_AUTOCOMMIT, in pdo_odbc_handle_factory()
517 rc = SQLSetConnectAttr(H->dbc, SQL_ODBC_CURSORS, (void*)cursor_lib, SQL_IS_INTEGER); in pdo_odbc_handle_factory()
600 rc = SQLDriverConnect(H->dbc, NULL, (SQLCHAR *) dbh->data_source, strlen(dbh->data_source), in pdo_odbc_handle_factory()
604 …rc = SQLConnect(H->dbc, (SQLCHAR *) dbh->data_source, SQL_NTS, (SQLCHAR *) dbh->username, SQL_NTS,… in pdo_odbc_handle_factory()