Skip to content

Commit

Permalink
pr#217: add skipped chunk in unit tests (#225)
Browse files Browse the repository at this point in the history
Add chunk missed from 217, adjusting a unit test to use byte instead of
char count.for SQLSetConnectAttr() API.

(cherry picked from commit 6afa406)
  • Loading branch information
bpintea committed Mar 18, 2020
1 parent a45395b commit 8dede9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_driverconnect.cc
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,12 @@ TEST_F(DriverConnect, ResetCurrentCatalog)
ASSERT_TRUE(set_current_catalog(dbc, &crr_cat));
ASSERT_TRUE(SQL_SUCCEEDED(SQLSetConnectAttrW(my_dbc,
SQL_ATTR_CURRENT_CATALOG, (SQLPOINTER)crr_cat.str,
(SQLINTEGER)crr_cat.cnt)));
(SQLINTEGER)(crr_cat.cnt * sizeof(SQLWCHAR)))));

wstr_st other_cat = WSTR_INIT("other_catalog");
ASSERT_FALSE(SQL_SUCCEEDED(SQLSetConnectAttrW(my_dbc,
SQL_ATTR_CURRENT_CATALOG, (SQLPOINTER)other_cat.str,
(SQLINTEGER)other_cat.cnt)));
(SQLINTEGER)(other_cat.cnt * sizeof(SQLWCHAR)))));
}

} // test namespace
Expand Down

0 comments on commit 8dede9a

Please sign in to comment.