| 639 | } |
| 640 | |
| 641 | void CheckSmallIntColumn(SQLHSTMT stmt, int col_id, const SQLSMALLINT& expected) { |
| 642 | SQLSMALLINT buf; |
| 643 | SQLLEN buf_len = sizeof(buf); |
| 644 | |
| 645 | ASSERT_EQ(SQL_SUCCESS, |
| 646 | SQLGetData(stmt, col_id, SQL_C_SSHORT, &buf, sizeof(buf), &buf_len)); |
| 647 | |
| 648 | EXPECT_EQ(expected, buf); |
| 649 | } |
| 650 | |
| 651 | void ValidateFetch(SQLHSTMT stmt, SQLRETURN expected_return) { |
| 652 | ASSERT_EQ(expected_return, SQLFetch(stmt)); |
no test coverage detected