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