Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
5e9911e5
提交
5e9911e5
authored
7月 04, 2014
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Documentation.
上级
7f44a0b7
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
25 行增加
和
10 行删除
+25
-10
help.csv
h2/src/docsrc/help/help.csv
+1
-1
advanced.html
h2/src/docsrc/html/advanced.html
+10
-4
changelog.html
h2/src/docsrc/html/changelog.html
+12
-4
ErrorCode.java
h2/src/main/org/h2/api/ErrorCode.java
+2
-1
没有找到文件。
h2/src/docsrc/help/help.csv
浏览文件 @
5e9911e5
...
@@ -3923,7 +3923,7 @@ CALL SCHEMA()
...
@@ -3923,7 +3923,7 @@ CALL SCHEMA()
SCOPE_IDENTITY()
SCOPE_IDENTITY()
","
","
Returns the last inserted identity value for this session for the current scope
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().
Changes within triggers and Java functions are ignored. See also IDENTITY().
This method returns a long.
This method returns a long.
","
","
...
...
h2/src/docsrc/html/advanced.html
浏览文件 @
5e9911e5
...
@@ -390,14 +390,20 @@ If the result is <code>''</code> (two single quotes), then the cluster mode is d
...
@@ -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>
.
servers is returned, enclosed in single quote. Example:
<code>
'server1:9191,server2:9191'
</code>
.
</p>
</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
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.
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
<p>
<code>
serverX
</code>
property only returns IP addresses and ports and not hostnames.
</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>
<h3>
Clustering Algorithm and Limitations
</h3>
<p>
<p>
...
...
h2/src/docsrc/html/changelog.html
浏览文件 @
5e9911e5
...
@@ -17,11 +17,17 @@ Change Log
...
@@ -17,11 +17,17 @@ Change Log
<h1>
Change Log
</h1>
<h1>
Change Log
</h1>
<h2>
Next Version (unreleased)
</h2>
<h2>
Next Version (unreleased)
</h2>
<ul><li>
The LIRS cache now re-sizes the internal hash map if needed.
<ul><li>
MVStore: new utility to compress a store.
<ul><li>
Optionally persist session history in the H2 console. (patch from Martin Grajcar)
</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
<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)
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).
open when the wrong password was supplied. (test case from Jens Hohmuth).
</li></ul>
</li></ul>
...
@@ -31,7 +37,8 @@ open when the wrong password was supplied. (test case from Jens Hohmuth).
...
@@ -31,7 +37,8 @@ open when the wrong password was supplied. (test case from Jens Hohmuth).
(with MULTI_THREADED option) resulted in a NullPointerException.
(with MULTI_THREADED option) resulted in a NullPointerException.
</li><li>
MVStore: reduced dependencies to other H2 classes.
</li><li>
MVStore: reduced dependencies to other H2 classes.
</li><li>
There was a way to prevent a database from being re-opened,
</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.
This is now detected, and creating the table is prohibited.
In future versions of H2, most likely creating references to other
In future versions of H2, most likely creating references to other
tables will no longer be supported because of such problems.
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).
...
@@ -57,6 +64,7 @@ open when the wrong password was supplied. (test case from Jens Hohmuth).
which could result in a ClassCastException.
which could result in a ClassCastException.
</li><li>
Issue 566: MVStore: unique indexes that were created later on did not work correctly
</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.
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
</li><li>
MVStore: creating secondary indexes on large tables
results in missing rows in the index.
results in missing rows in the index.
</li><li>
Metadata: the password of linked tables is now only visible for admin users.
</li><li>
Metadata: the password of linked tables is now only visible for admin users.
...
...
h2/src/main/org/h2/api/ErrorCode.java
浏览文件 @
5e9911e5
...
@@ -515,7 +515,8 @@ public class ErrorCode {
...
@@ -515,7 +515,8 @@ public class ErrorCode {
* are used. Instead, use "jdbc:h2:~/name" (relative to the current user
* are used. Instead, use "jdbc:h2:~/name" (relative to the current user
* home directory), use an absolute path, set the base directory (baseDir),
* home directory), use an absolute path, set the base directory (baseDir),
* use "jdbc:h2:./name" (explicit relative path), or set the system property
* 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:
* the documentation on the supported URL format. Example:
* <pre>
* <pre>
* jdbc:h2:test
* jdbc:h2:test
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论