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

Function SQLDisconnect

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

Source from the content-addressed store, hash-verified

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

Callers 3

DisconnectMethod · 0.50
TYPED_TESTFunction · 0.50
TEST_FFunction · 0.50

Calls 1

DisconnectMethod · 0.45

Tested by 3

DisconnectMethod · 0.40
TYPED_TESTFunction · 0.40
TEST_FFunction · 0.40