提交 1b1bff1e authored 作者: Thomas Mueller's avatar Thomas Mueller

When converting CLOB to BINARY, each character resulted in one byte.

上级 12fab607
......@@ -569,11 +569,19 @@ public class ValueLob extends Value {
}
public byte[] getBytes() throws SQLException {
if (type == CLOB) {
// convert hex to string
return super.getBytes();
}
byte[] data = getBytesNoCopy();
return ByteUtils.cloneByteArray(data);
}
public byte[] getBytesNoCopy() throws SQLException {
if (type == CLOB) {
// convert hex to string
return super.getBytesNoCopy();
}
if (small != null) {
return small;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论