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

Function CheckIntColumn

cpp/src/arrow/flight/sql/odbc/tests/odbc_test_suite.cc:550–558  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

548}
549
550void CheckIntColumn(SQLHSTMT stmt, int col_id, const SQLINTEGER& expected) {
551 SQLINTEGER buf;
552 SQLLEN buf_len = sizeof(buf);
553
554 ASSERT_EQ(SQL_SUCCESS,
555 SQLGetData(stmt, col_id, SQL_C_LONG, &buf, sizeof(buf), &buf_len));
556
557 EXPECT_EQ(expected, buf);
558}
559
560void CheckSmallIntColumn(SQLHSTMT stmt, int col_id, const SQLSMALLINT& expected) {
561 SQLSMALLINT buf;

Callers 3

CheckSQLColumnsFunction · 0.85
TYPED_TESTFunction · 0.85
CheckSQLGetTypeInfoFunction · 0.85

Calls 1

SQLGetDataFunction · 0.50

Tested by

no test coverage detected