| 1242 | } |
| 1243 | |
| 1244 | SQLRETURN SQLNumResultCols(SQLHSTMT stmt, SQLSMALLINT* column_count_ptr) { |
| 1245 | ARROW_LOG(DEBUG) << "SQLNumResultCols called with stmt: " << stmt |
| 1246 | << ", column_count_ptr: " |
| 1247 | << static_cast<const void*>(column_count_ptr); |
| 1248 | |
| 1249 | using ODBC::ODBCStatement; |
| 1250 | return ODBCStatement::ExecuteWithDiagnostics(stmt, SQL_ERROR, [=]() { |
| 1251 | ODBCStatement* statement = reinterpret_cast<ODBCStatement*>(stmt); |
| 1252 | statement->GetColumnCount(column_count_ptr); |
| 1253 | return SQL_SUCCESS; |
| 1254 | }); |
| 1255 | } |
| 1256 | |
| 1257 | SQLRETURN SQLRowCount(SQLHSTMT stmt, SQLLEN* row_count_ptr) { |
| 1258 | ARROW_LOG(DEBUG) << "SQLRowCount called with stmt: " << stmt |