Skip to content

Commit

Permalink
Fixed cstring doesn't end problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerry Leung committed Mar 19, 2021
1 parent 75a80aa commit 04bdc6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IntegrationTests/ITODBCResults/test_odbc_results.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4660,7 +4660,7 @@ TEST_F(TestSQLDescribeCol, TRUNCATED_COLUMN_NAME_COLUMN) {
EXPECT_TRUE(CheckSQLSTATE(SQL_HANDLE_STMT, m_hstmt,
SQLSTATE_STRING_DATA_RIGHT_TRUNCATED));
std::wstring truncated_column_name = L"_";
EXPECT_STREQ(truncated_column_name.c_str(), column_name);
EXPECT_EQ(truncated_column_name[0], column_name[0]);
std::wstring expected_column_name = L"_col0";
EXPECT_EQ((SQLSMALLINT)expected_column_name.size(), column_name_length);
LogAnyDiagnostics(SQL_HANDLE_STMT, m_hstmt, ret);
Expand Down

0 comments on commit 04bdc6a

Please sign in to comment.