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

Method ExecutePrepared

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

Source from the content-addressed store, hash-verified

298}
299
300void ODBCStatement::ExecutePrepared() {
301 if (!is_prepared_) {
302 throw DriverException("Function sequence error", "HY010");
303 }
304
305 if (spi_statement_->ExecutePrepared()) {
306 current_result_ = spi_statement_->GetResultSet();
307 ird_->PopulateFromResultSetMetadata(
308 spi_statement_->GetResultSet()->GetMetadata().get());
309 has_reached_end_of_result_ = false;
310 }
311}
312
313void ODBCStatement::ExecuteDirect(const std::string& query) {
314 if (spi_statement_->Execute(query)) {

Callers 2

SQLExecDirectFunction · 0.45
SQLExecuteFunction · 0.45

Calls 5

DriverExceptionClass · 0.85
GetResultSetMethod · 0.80
GetMetadataMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected