Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
652c0c30
提交
652c0c30
authored
6月 05, 2011
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Documentation.
上级
a2606a57
全部展开
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
1480 行增加
和
1471 行删除
+1480
-1471
help.csv
h2/src/docsrc/help/help.csv
+2
-2
_docs_en.utf8.txt
h2/src/docsrc/text/_docs_en.utf8.txt
+415
-412
_docs_ja.utf8.txt
h2/src/docsrc/text/_docs_ja.utf8.txt
+415
-412
_docs_en.properties
h2/src/docsrc/textbase/_docs_en.properties
+413
-412
help.csv
h2/src/main/org/h2/res/help.csv
+2
-2
TestWeb.java
h2/src/test/org/h2/test/server/TestWeb.java
+233
-231
没有找到文件。
h2/src/docsrc/help/help.csv
浏览文件 @
652c0c30
...
@@ -1828,9 +1828,9 @@ The maximum length of the number depends on the data type used.
...
@@ -1828,9 +1828,9 @@ The maximum length of the number depends on the data type used.
"
"
"Other Grammar","Numeric","
"Other Grammar","Numeric","
int | long | decimal
| hexNumber
decimal | int | long
| hexNumber
","
","
The data type of a num
ber
is always the lowest possible for the given value.
The data type of a num
eric 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).
If the number contains a dot this is decimal; otherwise it is int, long, or decimal (depending on the value).
","
","
SELECT -1600.05
SELECT -1600.05
...
...
h2/src/docsrc/text/_docs_en.utf8.txt
浏览文件 @
652c0c30
差异被折叠。
点击展开。
h2/src/docsrc/text/_docs_ja.utf8.txt
浏览文件 @
652c0c30
差异被折叠。
点击展开。
h2/src/docsrc/textbase/_docs_en.properties
浏览文件 @
652c0c30
This source diff could not be displayed because it is too large. You can
view the blob
instead.
h2/src/main/org/h2/res/help.csv
浏览文件 @
652c0c30
...
@@ -616,9 +616,9 @@ digit [...]
...
@@ -616,9 +616,9 @@ digit [...]
","
","
The maximum length of the number depends on the data type used."
The maximum length of the number depends on the data type used."
"Other Grammar","Numeric","
"Other Grammar","Numeric","
int | long | decimal
| hexNumber
decimal | int | long
| hexNumber
","
","
The data type of a num
ber
is always the lowest possible for the given value."
The data type of a num
eric value
is always the lowest possible for the given value."
"Other Grammar","Operand","
"Other Grammar","Operand","
summand [ { || summand } [...] ]
summand [ { || summand } [...] ]
","
","
...
...
h2/src/test/org/h2/test/server/TestWeb.java
浏览文件 @
652c0c30
...
@@ -158,6 +158,7 @@ public class TestWeb extends TestBase {
...
@@ -158,6 +158,7 @@ public class TestWeb extends TestBase {
Server
server
=
new
Server
();
Server
server
=
new
Server
();
server
.
setOut
(
new
PrintStream
(
new
ByteArrayOutputStream
()));
server
.
setOut
(
new
PrintStream
(
new
ByteArrayOutputStream
()));
server
.
runTool
(
"-web"
,
"-webPort"
,
"8182"
,
"-properties"
,
"null"
,
"-tcp"
,
"-tcpPort"
,
"9101"
);
server
.
runTool
(
"-web"
,
"-webPort"
,
"8182"
,
"-properties"
,
"null"
,
"-tcp"
,
"-tcpPort"
,
"9101"
);
try
{
String
url
=
"http://localhost:8182"
;
String
url
=
"http://localhost:8182"
;
WebClient
client
;
WebClient
client
;
String
result
;
String
result
;
...
@@ -183,7 +184,9 @@ public class TestWeb extends TestBase {
...
@@ -183,7 +184,9 @@ public class TestWeb extends TestBase {
// expected
// expected
Thread
.
sleep
(
1000
);
Thread
.
sleep
(
1000
);
}
}
}
finally
{
server
.
shutdown
();
server
.
shutdown
();
}
// it should be stopped now
// it should be stopped now
server
=
Server
.
createTcpServer
(
"-tcpPort"
,
"9101"
);
server
=
Server
.
createTcpServer
(
"-tcpPort"
,
"9101"
);
server
.
start
();
server
.
start
();
...
@@ -194,6 +197,7 @@ public class TestWeb extends TestBase {
...
@@ -194,6 +197,7 @@ public class TestWeb extends TestBase {
Server
server
=
new
Server
();
Server
server
=
new
Server
();
server
.
setOut
(
new
PrintStream
(
new
ByteArrayOutputStream
()));
server
.
setOut
(
new
PrintStream
(
new
ByteArrayOutputStream
()));
server
.
runTool
(
"-web"
,
"-webPort"
,
"8182"
,
"-properties"
,
"null"
,
"-tcp"
,
"-tcpPort"
,
"9101"
);
server
.
runTool
(
"-web"
,
"-webPort"
,
"8182"
,
"-properties"
,
"null"
,
"-tcp"
,
"-tcpPort"
,
"9101"
);
try
{
String
url
=
"http://localhost:8182"
;
String
url
=
"http://localhost:8182"
;
WebClient
client
;
WebClient
client
;
String
result
;
String
result
;
...
@@ -293,11 +297,7 @@ public class TestWeb extends TestBase {
...
@@ -293,11 +297,7 @@ public class TestWeb extends TestBase {
result
=
client
.
get
(
url
,
"autoCompleteList.do?query=call "
);
result
=
client
.
get
(
url
,
"autoCompleteList.do?query=call "
);
assertContains
(
result
,
"0x"
);
assertContains
(
result
,
"0x"
);
result
=
client
.
get
(
url
,
"autoCompleteList.do?query=call 0"
);
result
=
client
.
get
(
url
,
"autoCompleteList.do?query=call 0"
);
assertContains
(
result
,
"0x"
);
assertContains
(
result
,
"."
);
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"
);
result
=
client
.
get
(
url
,
"autoCompleteList.do?query=se"
);
result
=
client
.
get
(
url
,
"autoCompleteList.do?query=se"
);
assertContains
(
result
,
"select"
);
assertContains
(
result
,
"select"
);
assertContains
(
result
,
"set"
);
assertContains
(
result
,
"set"
);
...
@@ -408,8 +408,10 @@ public class TestWeb extends TestBase {
...
@@ -408,8 +408,10 @@ public class TestWeb extends TestBase {
result
=
client
.
get
(
url
,
"settingRemove.do?name=_test_"
);
result
=
client
.
get
(
url
,
"settingRemove.do?name=_test_"
);
client
.
get
(
url
,
"admin.do"
);
client
.
get
(
url
,
"admin.do"
);
}
finally
{
server
.
shutdown
();
server
.
shutdown
();
}
}
}
private
void
testStartWebServerWithConnection
()
throws
Exception
{
private
void
testStartWebServerWithConnection
()
throws
Exception
{
String
old
=
System
.
getProperty
(
SysProperties
.
H2_BROWSER
);
String
old
=
System
.
getProperty
(
SysProperties
.
H2_BROWSER
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论