提交 5e9911e5 authored 作者: Thomas Mueller's avatar Thomas Mueller

Documentation.

上级 7f44a0b7
......@@ -3923,7 +3923,7 @@ CALL SCHEMA()
SCOPE_IDENTITY()
","
Returns the last inserted identity value for this session for the current scope
(ie. the current statement)
(ie. the current statement).
Changes within triggers and Java functions are ignored. See also IDENTITY().
This method returns a long.
","
......
......@@ -390,14 +390,20 @@ If the result is <code>''</code> (two single quotes), then the cluster mode is d
servers is returned, enclosed in single quote. Example: <code>'server1:9191,server2:9191'</code>.
</p>
<p>It is also possible to get the list of servers by using Connection.getClientInfo().</p>
<p>
It is also possible to get the list of servers by using Connection.getClientInfo().
</p>
<p>The property list returned from <code>getClientInfo()</code> contains a <code>numServers</code> property that returns the
<p>
The property list returned from <code>getClientInfo()</code> contains a <code>numServers</code> property that returns the
number of servers that are in the connection list. To get the actual servers, <code>getClientInfo()</code> also has
properties <code>server0</code>..<code>serverX</code>, where serverX is the number of servers minus 1.
</p>
<p>Example: To get the 2nd server in the connection list one uses <code>getClientInfo('server1')<code>. <b>Note:</b> The
<code>serverX</code> property only returns IP addresses and ports and not hostnames.</p>
<p>
Example: To get the 2nd server in the connection list one uses <code>getClientInfo('server1')<code>. <b>Note:</b> The
<code>serverX</code> property only returns IP addresses and ports and not hostnames.
</p>
<h3>Clustering Algorithm and Limitations</h3>
<p>
......
......@@ -17,11 +17,17 @@ Change Log
<h1>Change Log</h1>
<h2>Next Version (unreleased)</h2>
<ul><li>The LIRS cache now re-sizes the internal hash map if needed.
<ul><li>Optionally persist session history in the H2 console. (patch from Martin Grajcar)
<ul><li>MVStore: new utility to compress a store.
</li><li>Sequences of temporary tables (auto-increment or identity columns)
were persisted unnecessarily in the database file, and were not removed
when re-opening the database.
</li><li>MVStore: an IndexOutOfBoundsException could sometimes
occur MVMap.openVersion when concurrently accessing the store.
</li><li>The LIRS cache now re-sizes the internal hash map if needed.
</li><li>Optionally persist session history in the H2 console. (patch from Martin Grajcar)
<ul><li>Add client-info property to get the number of servers currently in the cluster
and which servers that are available. (patch from Nikolaj Fogh)
<ul><li>Fix bug in changing encrypted DB password that kept the file handle
</li><li>Fix bug in changing encrypted DB password that kept the file handle
open when the wrong password was supplied. (test case from Jens Hohmuth).
</li></ul>
......@@ -31,7 +37,8 @@ open when the wrong password was supplied. (test case from Jens Hohmuth).
(with MULTI_THREADED option) resulted in a NullPointerException.
</li><li>MVStore: reduced dependencies to other H2 classes.
</li><li>There was a way to prevent a database from being re-opened,
by creating a column constraint that references a table with a higher id.
by creating a column constraint that references a table with a higher id,
for example with "check" constraints that contains queries.
This is now detected, and creating the table is prohibited.
In future versions of H2, most likely creating references to other
tables will no longer be supported because of such problems.
......@@ -57,6 +64,7 @@ open when the wrong password was supplied. (test case from Jens Hohmuth).
which could result in a ClassCastException.
</li><li>Issue 566: MVStore: unique indexes that were created later on did not work correctly
if there were over 5000 rows in the table.
Existing databases need to be re-created (at least the broken index need to be re-built).
</li><li>MVStore: creating secondary indexes on large tables
results in missing rows in the index.
</li><li>Metadata: the password of linked tables is now only visible for admin users.
......
......@@ -515,7 +515,8 @@ public class ErrorCode {
* are used. Instead, use "jdbc:h2:~/name" (relative to the current user
* home directory), use an absolute path, set the base directory (baseDir),
* use "jdbc:h2:./name" (explicit relative path), or set the system property
* "h2.implicitRelativePath" to "true" (to prevent this check). Please see
* "h2.implicitRelativePath" to "true" (to prevent this check). For Windows,
* an absolute path also needs to include the drive ("C:/..."). Please see
* the documentation on the supported URL format. Example:
* <pre>
* jdbc:h2:test
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论