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

Method Disconnect

cpp/src/arrow/flight/sql/odbc/odbc_impl/odbc_connection.cc:631–640  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

629}
630
631void ODBCConnection::Disconnect() {
632 if (is_connected_) {
633 // Ensure that all statements (and corresponding SPI statements) get cleaned
634 // up before terminating the SPI connection in case they need to be de-allocated in
635 // the reverse of the allocation order.
636 statements_.clear();
637 spi_connection_->Close();
638 is_connected_ = false;
639 }
640}
641
642void ODBCConnection::ReleaseConnection() {
643 Disconnect();

Callers

nothing calls this directly

Calls 2

clearMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected