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

Method Prepare

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

Source from the content-addressed store, hash-verified

288bool ODBCStatement::IsPrepared() const { return is_prepared_; }
289
290void ODBCStatement::Prepare(const std::string& query) {
291 std::optional<std::shared_ptr<ResultSetMetadata> > metadata =
292 spi_statement_->Prepare(query);
293
294 if (metadata) {
295 ird_->PopulateFromResultSetMetadata(metadata->get());
296 }
297 is_prepared_ = true;
298}
299
300void ODBCStatement::ExecutePrepared() {
301 if (!is_prepared_) {

Callers 2

SQLExecDirectFunction · 0.45
SQLPrepareFunction · 0.45

Calls 2

getMethod · 0.45

Tested by

no test coverage detected