Skip to content

Commit

Permalink
remove UTF-8 charset specification from VarCharConverter
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-mkubik committed Nov 19, 2024
1 parent f911113 commit 4681524
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public VarCharConverter(ValueVector valueVector, int columnIndex, DataConversion
@Override
public String toString(int index) {
byte[] bytes = toBytes(index);
return bytes == null ? null : new String(bytes, StandardCharsets.UTF_8);
return bytes == null ? null : new String(bytes);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,8 @@ protected void assertGetObjectIsCompatible(ResultSet resultSet, String expected)

protected void assertGetBytesIsCompatible(ResultSet resultSet, String expected)
throws SQLException {
byte[] expectedBytes = expected.getBytes();
TestUtil.assertEqualsIgnoringWhitespace(
new String(expectedBytes), new String(resultSet.getBytes(1)));
expected, new String(resultSet.getBytes(1)));
}

protected void withFirstRow(
Expand Down

0 comments on commit 4681524

Please sign in to comment.