提交 652c0c30 authored 作者: Thomas Mueller's avatar Thomas Mueller

Documentation.

上级 a2606a57
......@@ -1828,9 +1828,9 @@ The maximum length of the number depends on the data type used.
"
"Other Grammar","Numeric","
int | long | decimal | hexNumber
decimal | int | long | hexNumber
","
The data type of a number is always the lowest possible for the given value.
The data type of a numeric value is always the lowest possible for the given value.
If the number contains a dot this is decimal; otherwise it is int, long, or decimal (depending on the value).
","
SELECT -1600.05
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -616,9 +616,9 @@ digit [...]
","
The maximum length of the number depends on the data type used."
"Other Grammar","Numeric","
int | long | decimal | hexNumber
decimal | int | long | hexNumber
","
The data type of a number is always the lowest possible for the given value."
The data type of a numeric value is always the lowest possible for the given value."
"Other Grammar","Operand","
summand [ { || summand } [...] ]
","
......
......@@ -158,6 +158,7 @@ public class TestWeb extends TestBase {
Server server = new Server();
server.setOut(new PrintStream(new ByteArrayOutputStream()));
server.runTool("-web", "-webPort", "8182", "-properties", "null", "-tcp", "-tcpPort", "9101");
try {
String url = "http://localhost:8182";
WebClient client;
String result;
......@@ -183,7 +184,9 @@ public class TestWeb extends TestBase {
// expected
Thread.sleep(1000);
}
} finally {
server.shutdown();
}
// it should be stopped now
server = Server.createTcpServer("-tcpPort", "9101");
server.start();
......@@ -194,6 +197,7 @@ public class TestWeb extends TestBase {
Server server = new Server();
server.setOut(new PrintStream(new ByteArrayOutputStream()));
server.runTool("-web", "-webPort", "8182", "-properties", "null", "-tcp", "-tcpPort", "9101");
try {
String url = "http://localhost:8182";
WebClient client;
String result;
......@@ -293,11 +297,7 @@ public class TestWeb extends TestBase {
result = client.get(url, "autoCompleteList.do?query=call ");
assertContains(result, "0x");
result = client.get(url, "autoCompleteList.do?query=call 0");
assertContains(result, "0x");
result = client.get(url, "autoCompleteList.do?query=call 0x");
assertContains(result, "hex character");
result = client.get(url, "autoCompleteList.do?query=call 0x123");
assertContains(result, "hex character");
assertContains(result, ".");
result = client.get(url, "autoCompleteList.do?query=se");
assertContains(result, "select");
assertContains(result, "set");
......@@ -408,8 +408,10 @@ public class TestWeb extends TestBase {
result = client.get(url, "settingRemove.do?name=_test_");
client.get(url, "admin.do");
} finally {
server.shutdown();
}
}
private void testStartWebServerWithConnection() throws Exception {
String old = System.getProperty(SysProperties.H2_BROWSER);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论