MCPcopy Create free account
hub / github.com/apache/arrow / SQLCloseCursor

Function SQLCloseCursor

cpp/src/arrow/flight/sql/odbc/odbc_api.cc:1199–1211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1197}
1198
1199SQLRETURN 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
1213SQLRETURN SQLGetData(SQLHSTMT stmt, SQLUSMALLINT record_number, SQLSMALLINT c_type,
1214 SQLPOINTER data_ptr, SQLLEN buffer_length, SQLLEN* indicator_ptr) {

Callers 1

TYPED_TESTFunction · 0.50

Calls 1

CloseCursorMethod · 0.80

Tested by 1

TYPED_TESTFunction · 0.40