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

Function SQLExecute

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

Source from the content-addressed store, hash-verified

1071}
1072
1073SQLRETURN SQLExecute(SQLHSTMT stmt) {
1074 ARROW_LOG(DEBUG) << "SQLExecute called with stmt: " << stmt;
1075
1076 using ODBC::ODBCStatement;
1077 // The driver is built to handle SELECT statements only.
1078 return ODBCStatement::ExecuteWithDiagnostics(stmt, SQL_ERROR, [=]() {
1079 ODBCStatement* statement = reinterpret_cast<ODBCStatement*>(stmt);
1080
1081 statement->ExecutePrepared();
1082
1083 return SQL_SUCCESS;
1084 });
1085}
1086
1087SQLRETURN SQLFetch(SQLHSTMT stmt) {
1088 ARROW_LOG(DEBUG) << "SQLFetch called with stmt: " << stmt;

Callers 1

TYPED_TESTFunction · 0.50

Calls 1

ExecutePreparedMethod · 0.45

Tested by 1

TYPED_TESTFunction · 0.40