| 558 | } |
| 559 | |
| 560 | void CheckSmallIntColumn(SQLHSTMT stmt, int col_id, const SQLSMALLINT& expected) { |
| 561 | SQLSMALLINT buf; |
| 562 | SQLLEN buf_len = sizeof(buf); |
| 563 | |
| 564 | ASSERT_EQ(SQL_SUCCESS, |
| 565 | SQLGetData(stmt, col_id, SQL_C_SSHORT, &buf, sizeof(buf), &buf_len)); |
| 566 | |
| 567 | EXPECT_EQ(expected, buf); |
| 568 | } |
| 569 | |
| 570 | void ValidateFetch(SQLHSTMT stmt, SQLRETURN expected_return) { |
| 571 | ASSERT_EQ(expected_return, SQLFetch(stmt)); |
no test coverage detected