| 792 | } |
| 793 | |
| 794 | void ODBCStatement::GetColumnCount(SQLSMALLINT* column_count_ptr) { |
| 795 | if (!column_count_ptr) { |
| 796 | // column count pointer is not valid, do nothing as ODBC spec does not mention this as |
| 797 | // an error |
| 798 | return; |
| 799 | } |
| 800 | size_t column_count = ird_->GetRecords().size(); |
| 801 | *column_count_ptr = static_cast<SQLSMALLINT>(column_count); |
| 802 | } |
| 803 | |
| 804 | void ODBCStatement::GetRowCount(SQLLEN* row_count_ptr) { |
| 805 | if (!row_count_ptr) { |