| 1197 | } |
| 1198 | |
| 1199 | SQLRETURN SQLCloseCursor(SQLHSTMT stmt) { |
| 1200 | ARROW_LOG(DEBUG) << "SQLCloseCursor called with stmt: " << stmt; |
| 1201 | |
| 1202 | using ODBC::ODBCStatement; |
| 1203 | return ODBCStatement::ExecuteWithDiagnostics(stmt, SQL_ERROR, [=]() { |
| 1204 | ODBCStatement* statement = reinterpret_cast<ODBCStatement*>(stmt); |
| 1205 | |
| 1206 | // Close cursor with suppressErrors set to false |
| 1207 | statement->CloseCursor(false); |
| 1208 | |
| 1209 | return SQL_SUCCESS; |
| 1210 | }); |
| 1211 | } |
| 1212 | |
| 1213 | SQLRETURN SQLGetData(SQLHSTMT stmt, SQLUSMALLINT record_number, SQLSMALLINT c_type, |
| 1214 | SQLPOINTER data_ptr, SQLLEN buffer_length, SQLLEN* indicator_ptr) { |