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

Function CheckIntColumn

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

Source from the content-addressed store, hash-verified

629}
630
631void CheckIntColumn(SQLHSTMT stmt, int col_id, const SQLINTEGER& expected) {
632 SQLINTEGER buf;
633 SQLLEN buf_len = sizeof(buf);
634
635 ASSERT_EQ(SQL_SUCCESS,
636 SQLGetData(stmt, col_id, SQL_C_LONG, &buf, sizeof(buf), &buf_len));
637
638 EXPECT_EQ(expected, buf);
639}
640
641void CheckSmallIntColumn(SQLHSTMT stmt, int col_id, const SQLSMALLINT& expected) {
642 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