| 140 | } |
| 141 | |
| 142 | void 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 | |
| 152 | void ODBCTestBase::FreeEnvConnHandles(SQLHENV& env_handle, SQLHDBC& conn_handle) { |
| 153 | // Free connection handle |
no test coverage detected