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