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

Method Execute

cpp/src/arrow/flight/sql/odbc/odbc_impl/flight_sql_statement.cc:139–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139bool FlightSqlStatement::Execute(const std::string& query) {
140 ClosePreparedStatementIfAny(prepared_statement_, call_options_);
141
142 Result<std::shared_ptr<FlightInfo>> result = sql_client_.Execute(call_options_, query);
143 ThrowIfNotOK(result.status());
144
145 current_result_set_ = std::make_shared<FlightSqlResultSet>(
146 sql_client_, client_options_, call_options_, result.ValueOrDie(), nullptr,
147 diagnostics_, metadata_settings_);
148
149 return true;
150}
151
152std::shared_ptr<ResultSet> FlightSqlStatement::GetResultSet() {
153 return current_result_set_;

Callers 5

TestBindColumnFunction · 0.45
TestGetDataFunction · 0.45
TestBindColumnBigIntFunction · 0.45
ExecuteDirectMethod · 0.45
ExecutePreparedMethod · 0.45

Calls 4

ThrowIfNotOKFunction · 0.85
ValueOrDieMethod · 0.80
statusMethod · 0.45

Tested by 3

TestBindColumnFunction · 0.36
TestGetDataFunction · 0.36
TestBindColumnBigIntFunction · 0.36