| 1229 | } |
| 1230 | |
| 1231 | SQLRETURN SQLMoreResults(SQLHSTMT stmt) { |
| 1232 | ARROW_LOG(DEBUG) << "SQLMoreResults called with stmt: " << stmt; |
| 1233 | |
| 1234 | using ODBC::ODBCStatement; |
| 1235 | // Multiple result sets are not supported by Arrow protocol. Return SQL_NO_DATA by |
| 1236 | // default to indicate no data is available. |
| 1237 | return ODBCStatement::ExecuteWithDiagnostics(stmt, SQL_ERROR, [=]() { |
| 1238 | ODBCStatement* statement = reinterpret_cast<ODBCStatement*>(stmt); |
| 1239 | return statement->GetMoreResults(); |
| 1240 | }); |
| 1241 | } |
| 1242 | |
| 1243 | SQLRETURN SQLNumResultCols(SQLHSTMT stmt, SQLSMALLINT* column_count_ptr) { |
| 1244 | ARROW_LOG(DEBUG) << "SQLNumResultCols called with stmt: " << stmt |