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

Method ODBCStatement

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

Public =========================================================================================

Source from the content-addressed store, hash-verified

225// Public
226// =========================================================================================
227ODBCStatement::ODBCStatement(ODBCConnection& connection,
228 std::shared_ptr<Statement> spi_statement)
229 : connection_(connection),
230 spi_statement_(std::move(spi_statement)),
231 diagnostics_(&spi_statement_->GetDiagnostics()),
232 built_in_ard_(std::make_shared<ODBCDescriptor>(spi_statement_->GetDiagnostics(),
233 nullptr, this, true, true,
234 connection.IsOdbc2Connection())),
235 built_in_apd_(std::make_shared<ODBCDescriptor>(spi_statement_->GetDiagnostics(),
236 nullptr, this, true, true,
237 connection.IsOdbc2Connection())),
238 ipd_(std::make_shared<ODBCDescriptor>(spi_statement_->GetDiagnostics(), nullptr,
239 this, false, true,
240 connection.IsOdbc2Connection())),
241 ird_(std::make_shared<ODBCDescriptor>(spi_statement_->GetDiagnostics(), nullptr,
242 this, false, false,
243 connection.IsOdbc2Connection())),
244 current_ard_(built_in_apd_.get()),
245 current_apd_(built_in_apd_.get()),
246 row_number_(0),
247 max_rows_(0),
248 rowset_size_(1),
249 is_prepared_(false),
250 has_reached_end_of_result_(false) {}
251
252ODBCConnection& ODBCStatement::GetConnection() { return connection_; }
253

Callers

nothing calls this directly

Calls 2

IsOdbc2ConnectionMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected