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

Function SQLExecute

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

Source from the content-addressed store, hash-verified

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