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

Function CheckIntColumn

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

Source from the content-addressed store, hash-verified

653}
654
655void CheckIntColumn(SQLHSTMT stmt, int col_id, const SQLINTEGER& expected) {
656 SQLINTEGER buf;
657 SQLLEN buf_len = sizeof(buf);
658
659 ASSERT_EQ(SQL_SUCCESS,
660 SQLGetData(stmt, col_id, SQL_C_LONG, &buf, sizeof(buf), &buf_len));
661
662 EXPECT_EQ(expected, buf);
663}
664
665void CheckSmallIntColumn(SQLHSTMT stmt, int col_id, const SQLSMALLINT& expected) {
666 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