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