| 663 | } |
| 664 | |
| 665 | void CheckSmallIntColumn(SQLHSTMT stmt, int col_id, const SQLSMALLINT& expected) { |
| 666 | SQLSMALLINT buf; |
| 667 | SQLLEN buf_len = sizeof(buf); |
| 668 | |
| 669 | ASSERT_EQ(SQL_SUCCESS, |
| 670 | SQLGetData(stmt, col_id, SQL_C_SSHORT, &buf, sizeof(buf), &buf_len)); |
| 671 | |
| 672 | EXPECT_EQ(expected, buf); |
| 673 | } |
| 674 | |
| 675 | void ValidateFetch(SQLHSTMT stmt, SQLRETURN expected_return) { |
| 676 | ASSERT_EQ(expected_return, SQLFetch(stmt)); |
no test coverage detected