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

Method FreeEnvConnHandles

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

Source from the content-addressed store, hash-verified

150}
151
152void ODBCTestBase::FreeEnvConnHandles(SQLHENV& env_handle, SQLHDBC& conn_handle) {
153 // Free connection handle
154 if (conn_handle != SQL_NULL_HDBC) {
155 EXPECT_EQ(SQL_SUCCESS, SQLFreeHandle(SQL_HANDLE_DBC, conn_handle));
156 conn_handle = SQL_NULL_HDBC;
157 }
158
159 // Free environment handle
160 if (env_handle != SQL_NULL_HENV) {
161 EXPECT_EQ(SQL_SUCCESS, SQLFreeHandle(SQL_HANDLE_ENV, env_handle));
162 env_handle = SQL_NULL_HENV;
163 }
164}
165
166std::string ODBCTestBase::GetConnectionString() {
167 std::string connect_str =

Callers

nothing calls this directly

Calls 1

SQLFreeHandleFunction · 0.50

Tested by

no test coverage detected