We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c9cd80 commit d4d62e9Copy full SHA for d4d62e9
src/main/java/org/tarantool/jdbc/SQLResultSet.java
@@ -295,7 +295,8 @@ public InputStream getAsciiStream(String columnLabel) throws SQLException {
295
296
@Override
297
public InputStream getUnicodeStream(int columnIndex) throws SQLException {
298
- return new ByteArrayInputStream(getString(columnIndex).getBytes(Charset.forName("UTF-8")));
+ String string = getString(columnIndex);
299
+ return string == null ? null : new ByteArrayInputStream(string.getBytes(Charset.forName("UTF-16")));
300
}
301
302
0 commit comments