MCPcopy Create free account
hub / github.com/apache/arrow / Disconnect

Method Disconnect

cpp/src/arrow/flight/sql/odbc/tests/odbc_test_suite.cc:142–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142void ODBCTestBase::Disconnect(SQLHENV& env_handle, SQLHDBC& conn_handle) {
143 // Disconnect from ODBC
144 if (conn_handle != SQL_NULL_HDBC) {
145 EXPECT_EQ(SQL_SUCCESS, SQLDisconnect(conn_handle))
146 << GetOdbcErrorMessage(SQL_HANDLE_DBC, conn_handle);
147 }
148
149 FreeEnvConnHandles(env_handle, conn_handle);
150}
151
152void ODBCTestBase::FreeEnvConnHandles(SQLHENV& env_handle, SQLHDBC& conn_handle) {
153 // Free connection handle

Callers 3

SQLDisconnectFunction · 0.45
TYPED_TESTFunction · 0.45
CloseMethod · 0.45

Calls 2

GetOdbcErrorMessageFunction · 0.85
SQLDisconnectFunction · 0.50

Tested by

no test coverage detected