提交 fb8a7d79 authored 作者: Thomas Mueller's avatar Thomas Mueller

The H2 Console now stream results one statement / result set at a time.

上级 7b662af8
......@@ -945,7 +945,7 @@ public class WebApp {
list.add(s);
}
final Connection conn = session.getConnection();
if (SysProperties.CONSOLE_STREAM) {
if (SysProperties.CONSOLE_STREAM && server.getAllowChunked()) {
String page = StringUtils.utf8Decode(server.getFile("result.jsp"));
int idx = page.indexOf("${result}");
// the first element of the list is the header, the last the footer
......
......@@ -126,6 +126,8 @@ public class WebServer implements Service {
private boolean trace;
private TranslateThread translateThread;
private boolean allowChunked = true;
/**
* Read the given file from the file system or from the resources.
*
......@@ -699,4 +701,12 @@ public class WebServer implements Service {
return isDaemon;
}
void setAllowChunked(boolean allowChunked) {
this.allowChunked = allowChunked;
}
boolean getAllowChunked() {
return allowChunked;
}
}
......@@ -47,6 +47,7 @@ public class WebServlet extends HttpServlet {
String[] args = new String[list.size()];
list.toArray(args);
server = new WebServer();
server.setAllowChunked(false);
server.init(args);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论