提交 6f2502ba authored 作者: Thomas Mueller's avatar Thomas Mueller

H2 Console: data that is too long is now better abbreviated.

上级 63ca7dd6
......@@ -21,7 +21,7 @@ Change Log
<ul><li>Trying to open a database in read-only mode when a .lock.db file exists will now fail
with a nice error message.
</li><li>H2 Console: data that is too long is now abbreviated as follows: text... (100000 characters).
A large binary is abbreviated as follows: hex... (100000 bytes).
A large binary is abbreviated as follows: abcdef... (100000 bytes).
</li><li>Faster data conversion from BIGINT or INT to DECIMAL.
</li></ul>
......
......@@ -1635,7 +1635,7 @@ public class WebApp implements DatabaseEventListener {
} else if (d.length() > SysProperties.WEB_MAX_VALUE_LENGTH) {
String s;
if (isBinary(rs.getMetaData().getColumnType(columnIndex))) {
s = PageParser.escapeHtml(d.substring(0, 100)) + "... (" + (d.length() / 2) + " ${text.result.bytes})";
s = PageParser.escapeHtml(d.substring(0, 6)) + "... (" + (d.length() / 2) + " ${text.result.bytes})";
} else {
s = PageParser.escapeHtml(d.substring(0, 100)) + "... (" + d.length() + " ${text.result.characters})";
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论