Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
314e6f09
提交
314e6f09
authored
10月 10, 2008
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
--no commit message
上级
42c5bff8
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
15 行增加
和
23 行删除
+15
-23
advanced.html
h2/src/docsrc/html/advanced.html
+5
-1
changelog.html
h2/src/docsrc/html/changelog.html
+2
-1
features.html
h2/src/docsrc/html/features.html
+2
-1
TestAll.java
h2/src/test/org/h2/test/TestAll.java
+6
-4
TestAutoReconnect.java
h2/src/test/org/h2/test/server/TestAutoReconnect.java
+0
-16
没有找到文件。
h2/src/docsrc/html/advanced.html
浏览文件 @
314e6f09
...
...
@@ -110,7 +110,7 @@ are just links to another database. To create such a link, use the CREATE LINKED
CREATE LINKED TABLE LINK('org.postgresql.Driver', 'jdbc:postgresql:test', 'sa', 'sa', 'TEST');
</pre>
<p>
It is then possible to
access the table in the usual way.
You can then
access the table in the usual way.
Whenever the linked table is accessed, the database issues specific queries over JDBC.
Using the example above, if you issue the query
<code>
SELECT * FROM LINK WHERE ID=1
</code>
,
then the following query is run against the PostgreSQL database:
<code>
SELECT * FROM TEST WHERE ID=?
</code>
.
...
...
@@ -134,6 +134,10 @@ Oracle XE needs to be restarted after changing these values:
alter system set processes=100 scope=spfile;
alter system set sessions=100 scope=spfile;
</pre>
<p>
The CREATE LINKED TABLE statement supports an optional schema name parameter.
See the grammar for details.
</p>
<br
/><a
name=
"transaction_isolation"
></a>
<h2>
Transaction Isolation
</h2>
...
...
h2/src/docsrc/html/changelog.html
浏览文件 @
314e6f09
...
...
@@ -18,7 +18,8 @@ Change Log
<h1>
Change Log
</h1>
<h2>
Next Version (unreleased)
</h2>
<ul><li>
Renaming tables that have foreign keys with cascade didn't work correctly.
<ul><li>
Linked tables: compatibility with MS SQL Server has been improved.
</li><li>
Renaming tables that have foreign keys with cascade didn't work correctly.
</li><li>
The auto-reconnect feature didn't work when using the auto-server mode. Fixed.
</li><li>
Fulltext search: new method FT_DROP_INDEX.
</li><li>
The optimization to group using an index didn't work in some cases in version 1.1
...
...
h2/src/docsrc/html/features.html
浏览文件 @
314e6f09
...
...
@@ -265,7 +265,7 @@ http://groups.google.com/group/h2-database/web/roadmap
<td
class=
"compareY"
>
Yes
</td>
</tr><tr>
<td>
Row Level Locking
</td>
<td
class=
"compare
N"
>
No
</td>
<td
class=
"compare
Y"
>
Yes *9
</td>
<td
class=
"compareY"
>
Yes
</td>
<td
class=
"compareN"
>
No
</td>
<td
class=
"compareY"
>
Yes
</td>
...
...
@@ -358,6 +358,7 @@ http://groups.google.com/group/h2-database/web/roadmap
*6 PostgreSQL supports functional indexes.
<br
/>
*7 Derby only supports updatable result sets if the query is not sorted.
<br
/>
*8 Derby and HSQLDB don't support standard compliant information schema tables.
*9 H2 supports row level locks when using multi version concurrency.
</p>
<h3>
Derby and HSQLDB
</h3>
...
...
h2/src/test/org/h2/test/TestAll.java
浏览文件 @
314e6f09
...
...
@@ -280,6 +280,12 @@ java org.h2.test.TestAll timer
test with 1.0
document url parameter auto_server
document url parameter auto_reconnect
document url parameter open_new
document shared connections for linked tables
document osgi
merge join test case
osgi (derby, hsqldb)
...
...
@@ -306,10 +312,6 @@ not implemented / not tested
Feature requests:
SCOPE_IDENTITY
document url parameter auto_server
document url parameter auto_reconnect
document url parameter open_new
Add version number. Install directory: h2-1.1, jar file: h2-1.1.100.jar.
Micro version: use build number, staring with 1.1.100
...
...
h2/src/test/org/h2/test/server/TestAutoReconnect.java
浏览文件 @
314e6f09
...
...
@@ -54,26 +54,10 @@ public class TestAutoReconnect extends TestBase implements DatabaseEventListener
}
public
void
test
()
throws
Exception
{
testIsClosed
();
testReconnect
(
true
);
testReconnect
(
false
);
}
private
void
testIsClosed
()
throws
Exception
{
deleteDb
(
"autoReconnect"
);
url
=
"jdbc:h2:"
+
baseDir
+
"/autoReconnect;"
+
"AUTO_SERVER=TRUE;OPEN_NEW=TRUE"
;
Connection
conn1
=
DriverManager
.
getConnection
(
url
);
conn1
.
createStatement
().
execute
(
"CREATE TABLE TEST(ID INT)"
);
Connection
conn2
=
DriverManager
.
getConnection
(
url
);
assertFalse
(
conn1
.
isClosed
());
conn1
.
close
();
assertTrue
(
conn1
.
isClosed
());
assertFalse
(
conn2
.
isClosed
());
conn2
.
close
();
assertTrue
(
conn1
.
isClosed
());
}
private
void
testReconnect
(
boolean
autoServer
)
throws
Exception
{
this
.
autoServer
=
autoServer
;
deleteDb
(
"autoReconnect"
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论