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

Function SQLDisconnect

cpp/src/arrow/flight/sql/odbc/odbc_api.cc:959–971  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

957}
958
959SQLRETURN SQLDisconnect(SQLHDBC conn) {
960 ARROW_LOG(DEBUG) << "SQLDisconnect called with conn: " << conn;
961
962 using ODBC::ODBCConnection;
963
964 return ODBCConnection::ExecuteWithDiagnostics(conn, SQL_ERROR, [=]() {
965 ODBCConnection* connection = reinterpret_cast<ODBCConnection*>(conn);
966
967 connection->Disconnect();
968
969 return SQL_SUCCESS;
970 });
971}
972
973SQLRETURN SQLGetInfo(SQLHDBC conn, SQLUSMALLINT info_type, SQLPOINTER info_value_ptr,
974 SQLSMALLINT buf_len, SQLSMALLINT* string_length_ptr) {

Callers 4

DisconnectMethod · 0.50
TYPED_TESTFunction · 0.50
TYPED_TESTFunction · 0.50
TEST_FFunction · 0.50

Calls 1

DisconnectMethod · 0.45

Tested by 4

DisconnectMethod · 0.40
TYPED_TESTFunction · 0.40
TYPED_TESTFunction · 0.40
TEST_FFunction · 0.40