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

Method GetColumns

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

Source from the content-addressed store, hash-verified

830}
831
832void ODBCStatement::GetColumns(const std::string* catalog, const std::string* schema,
833 const std::string* table, const std::string* column) {
834 CloseCursor(true);
835 if (connection_.IsOdbc2Connection()) {
836 current_result_ = spi_statement_->GetColumns_V2(catalog, schema, table, column);
837 } else {
838 current_result_ = spi_statement_->GetColumns_V3(catalog, schema, table, column);
839 }
840 ird_->PopulateFromResultSetMetadata(current_result_->GetMetadata().get());
841 has_reached_end_of_result_ = false;
842
843 // Direct execution wipes out the prepared state.
844 is_prepared_ = false;
845}
846
847void ODBCStatement::GetTypeInfo(SQLSMALLINT data_type) {
848 CloseCursor(true);

Callers 1

SQLColumnsFunction · 0.80

Calls 6

IsOdbc2ConnectionMethod · 0.80
GetColumns_V2Method · 0.80
GetColumns_V3Method · 0.80
GetMetadataMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected