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

--no commit message

--no commit message
上级 9d0f0920
...@@ -960,6 +960,11 @@ public class AppThread extends WebServerThread { ...@@ -960,6 +960,11 @@ public class AppThread extends WebServerThread {
} }
time = System.currentTimeMillis() - time; time = System.currentTimeMillis() - time;
buff.append(getResultSet(sql, rs, metadata, edit, time, allowEdit)); buff.append(getResultSet(sql, rs, metadata, edit, time, allowEdit));
// SQLWarning warning = stat.getWarnings();
// if(warning != null) {
// buff.append("<br />Warning:<br />");
// buff.append(getStackTrace(id, warning));
// }
if(!edit) { if(!edit) {
stat.close(); stat.close();
} }
......
...@@ -29,6 +29,9 @@ public class DbSchema { ...@@ -29,6 +29,9 @@ public class DbSchema {
ArrayList list = new ArrayList(); ArrayList list = new ArrayList();
while(rs.next()) { while(rs.next()) {
DbTableOrView table = new DbTableOrView(this, rs); DbTableOrView table = new DbTableOrView(this, rs);
if(contents.isOracle && table.name.indexOf('$') > 0) {
continue;
}
list.add(table); list.add(table);
} }
rs.close(); rs.close();
......
...@@ -93,16 +93,23 @@ abstract class WebServerThread extends Thread { ...@@ -93,16 +93,23 @@ abstract class WebServerThread extends Thread {
// TODO web: support errors // TODO web: support errors
String mimeType; String mimeType;
boolean cache; boolean cache;
if(file.endsWith(".ico")) { int index = file.lastIndexOf('.');
String suffix;
if(index >= 0) {
suffix = file.substring(index+1);
} else {
suffix = "";
}
if(suffix.equals("ico")) {
mimeType = "image/x-icon"; mimeType = "image/x-icon";
cache=true; cache=true;
} else if(file.endsWith(".gif")) { } else if(suffix.equals("gif")) {
mimeType = "image/gif"; mimeType = "image/gif";
cache=true; cache=true;
} else if(file.endsWith(".css")) { } else if(suffix.equals("css")) {
cache=true; cache=true;
mimeType = "text/css"; mimeType = "text/css";
} else if(file.endsWith(".html") || file.endsWith(".do") || file.endsWith(".jsp")) { } else if(suffix.equals("html") || suffix.equals("do") || suffix.equals("jsp")) {
cache=false; cache=false;
mimeType = "text/html"; mimeType = "text/html";
if (session == null) { if (session == null) {
...@@ -111,7 +118,7 @@ abstract class WebServerThread extends Thread { ...@@ -111,7 +118,7 @@ abstract class WebServerThread extends Thread {
file = "index.do"; file = "index.do";
} }
} }
} else if(file.endsWith(".js")) { } else if(suffix.equals("js")) {
cache=true; cache=true;
mimeType = "text/javascript"; mimeType = "text/javascript";
} else { } else {
......
...@@ -115,9 +115,10 @@ Initial Developer: H2 Group ...@@ -115,9 +115,10 @@ Initial Developer: H2 Group
</tr> </tr>
</c:forEach> </c:forEach>
</table> </table>
</form>
<p> <p>
<a href="adminShutdown.do?jsessionid=${sessionId}">${text.adminShutdown}</a> <form name="shutdown" method="post" action="/adminShutdown.do?jsessionid=${sessionId}">
</p> <input type="submit" class="button" value="${text.adminShutdown}" />
</form> </form>
</p>
</body></html> </body></html>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论