Skip to content

Commit

Permalink
feat(driver-mongodb): fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
qianmoQ committed Dec 4, 2024
1 parent 1842114 commit 591f0c9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import java.io.Reader;
import java.math.BigDecimal;
import java.net.URL;
import java.nio.charset.Charset;
import java.sql.Array;
import java.sql.Blob;
import java.sql.Clob;
Expand Down Expand Up @@ -109,7 +110,7 @@ public byte getByte(String columnLabel)
throw new SQLException("Null value");
}

return String.valueOf(value).getBytes()[0];
return String.valueOf(value).getBytes(Charset.defaultCharset())[0];
}

@Override
Expand Down

0 comments on commit 591f0c9

Please sign in to comment.