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

Method CloseCursor

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

Source from the content-addressed store, hash-verified

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