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

Function SQLCloseCursor

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

Source from the content-addressed store, hash-verified

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