提交 87e8a128 authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 4463dbfa
...@@ -499,12 +499,21 @@ public class ValueLob extends Value { ...@@ -499,12 +499,21 @@ public class ValueLob extends Value {
try { try {
String s; String s;
if(type == Value.CLOB) { if(type == Value.CLOB) {
if(precision < Constants.DEFAULT_MAX_LENGTH_INPLACE_LOB) {
s = getString(); s = getString();
return StringUtils.quoteStringSQL(s); return StringUtils.quoteStringSQL(s);
} else { } else {
return "READ_CLOB('" + fileName + "', "+precision+")";
// TODO
}
} else {
if(precision < Constants.DEFAULT_MAX_LENGTH_INPLACE_LOB) {
byte[] buff = getBytes(); byte[] buff = getBytes();
s = ByteUtils.convertBytesToString(buff); s = ByteUtils.convertBytesToString(buff);
return "X'" + s + "'"; return "X'" + s + "'";
} else {
return "READ_BLOB('"+ fileName +"', "+precision+")";
}
} }
} catch(SQLException e) { } catch(SQLException e) {
throw Message.convertToInternal(e); throw Message.convertToInternal(e);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论