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

Method ExecuteDirect

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

Source from the content-addressed store, hash-verified

311}
312
313void ODBCStatement::ExecuteDirect(const std::string& query) {
314 if (spi_statement_->Execute(query)) {
315 current_result_ = spi_statement_->GetResultSet();
316 ird_->PopulateFromResultSetMetadata(current_result_->GetMetadata().get());
317 has_reached_end_of_result_ = false;
318 }
319
320 // Direct execution wipes out the prepared state.
321 is_prepared_ = false;
322}
323
324bool ODBCStatement::Fetch(size_t rows, SQLULEN* row_count_ptr,
325 SQLUSMALLINT* row_status_array) {

Callers

nothing calls this directly

Calls 5

GetResultSetMethod · 0.80
GetMetadataMethod · 0.80
ExecuteMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected