提交 314e6f09 authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 42c5bff8
......@@ -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>
......
......@@ -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
......
......@@ -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="compareN">No</td>
<td class="compareY">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>
......
......@@ -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
......
......@@ -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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论