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

Function SQLGetData

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

Source from the content-addressed store, hash-verified

1210}
1211
1212SQLRETURN SQLGetData(SQLHSTMT stmt, SQLUSMALLINT record_number, SQLSMALLINT c_type,
1213 SQLPOINTER data_ptr, SQLLEN buffer_length, SQLLEN* indicator_ptr) {
1214 // GH-46979 TODO: support SQL_C_GUID data type
1215 // GH-46980 TODO: support Interval data types
1216 // GH-46985 TODO: return warning message instead of error on float truncation case
1217 ARROW_LOG(DEBUG) << "SQLGetData called with stmt: " << stmt
1218 << ", record_number: " << record_number << ", c_type: " << c_type
1219 << ", data_ptr: " << data_ptr << ", buffer_length: " << buffer_length
1220 << ", indicator_ptr: " << static_cast<const void*>(indicator_ptr);
1221
1222 using ODBC::ODBCStatement;
1223
1224 return ODBCStatement::ExecuteWithDiagnostics(stmt, SQL_ERROR, [=]() {
1225 ODBCStatement* statement = reinterpret_cast<ODBCStatement*>(stmt);
1226 return statement->GetData(record_number, c_type, data_ptr, buffer_length,
1227 indicator_ptr);
1228 });
1229}
1230
1231SQLRETURN SQLMoreResults(SQLHSTMT stmt) {
1232 ARROW_LOG(DEBUG) << "SQLMoreResults called with stmt: " << stmt;

Callers 8

TYPED_TESTFunction · 0.50
TEST_FFunction · 0.50
GetStringColumnWFunction · 0.50
CheckStringColumnWFunction · 0.50
CheckNullColumnWFunction · 0.50
CheckIntColumnFunction · 0.50
CheckSmallIntColumnFunction · 0.50
TYPED_TESTFunction · 0.50

Calls 1

GetDataMethod · 0.45

Tested by 8

TYPED_TESTFunction · 0.40
TEST_FFunction · 0.40
GetStringColumnWFunction · 0.40
CheckStringColumnWFunction · 0.40
CheckNullColumnWFunction · 0.40
CheckIntColumnFunction · 0.40
CheckSmallIntColumnFunction · 0.40
TYPED_TESTFunction · 0.40