| 212 | } |
| 213 | |
| 214 | std::shared_ptr<ResultSet> FlightSqlStatement::GetColumns_V2( |
| 215 | const std::string* catalog_name, const std::string* schema_name, |
| 216 | const std::string* table_name, const std::string* column_name) { |
| 217 | ClosePreparedStatementIfAny(prepared_statement_, call_options_); |
| 218 | |
| 219 | Result<std::shared_ptr<FlightInfo>> result = sql_client_.GetTables( |
| 220 | call_options_, catalog_name, schema_name, table_name, true, nullptr); |
| 221 | ThrowIfNotOK(result.status()); |
| 222 | |
| 223 | auto flight_info = result.ValueOrDie(); |
| 224 | |
| 225 | auto transformer = std::make_shared<GetColumns_Transformer>( |
| 226 | metadata_settings_, OdbcVersion::V_2, column_name); |
| 227 | |
| 228 | current_result_set_ = std::make_shared<FlightSqlResultSet>( |
| 229 | sql_client_, client_options_, call_options_, flight_info, transformer, diagnostics_, |
| 230 | metadata_settings_); |
| 231 | |
| 232 | return current_result_set_; |
| 233 | } |
| 234 | |
| 235 | std::shared_ptr<ResultSet> FlightSqlStatement::GetColumns_V3( |
| 236 | const std::string* catalog_name, const std::string* schema_name, |
no test coverage detected