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

Method CloseCursor

cpp/src/arrow/flight/sql/odbc/odbc_impl/odbc_statement.cc:723–737  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

721}
722
723void ODBCStatement::CloseCursor(bool suppress_errors) {
724 if (!suppress_errors && !current_result_) {
725 throw DriverException("Invalid cursor state", "24000");
726 }
727
728 if (current_result_) {
729 current_result_->Close();
730 current_result_ = nullptr;
731 }
732
733 // Reset the fetching state of this statement.
734 current_ard_->NotifyBindingsHaveChanged();
735 row_number_ = 0;
736 has_reached_end_of_result_ = false;
737}
738
739SQLRETURN ODBCStatement::GetData(SQLSMALLINT record_number, SQLSMALLINT c_type,
740 SQLPOINTER data_ptr, SQLLEN buffer_length,

Callers 2

SQLFreeStmtFunction · 0.80
SQLCloseCursorFunction · 0.80

Calls 3

DriverExceptionClass · 0.85
CloseMethod · 0.45

Tested by

no test coverage detected