| 1254 | } |
| 1255 | |
| 1256 | SQLRETURN SQLRowCount(SQLHSTMT stmt, SQLLEN* row_count_ptr) { |
| 1257 | ARROW_LOG(DEBUG) << "SQLRowCount called with stmt: " << stmt |
| 1258 | << ", column_count_ptr: " << static_cast<const void*>(row_count_ptr); |
| 1259 | |
| 1260 | using ODBC::ODBCStatement; |
| 1261 | return ODBCStatement::ExecuteWithDiagnostics(stmt, SQL_ERROR, [=]() { |
| 1262 | ODBCStatement* statement = reinterpret_cast<ODBCStatement*>(stmt); |
| 1263 | statement->GetRowCount(row_count_ptr); |
| 1264 | return SQL_SUCCESS; |
| 1265 | }); |
| 1266 | } |
| 1267 | |
| 1268 | SQLRETURN SQLTables(SQLHSTMT stmt, SQLWCHAR* catalog_name, |
| 1269 | SQLSMALLINT catalog_name_length, SQLWCHAR* schema_name, |