Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
141eb744
提交
141eb744
authored
2月 02, 2012
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Documentation
上级
1fe8e8cf
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
1531 行增加
和
1425 行删除
+1531
-1425
changelog.html
h2/src/docsrc/html/changelog.html
+4
-4
_docs_en.utf8.txt
h2/src/docsrc/text/_docs_en.utf8.txt
+509
-467
_docs_ja.utf8.txt
h2/src/docsrc/text/_docs_ja.utf8.txt
+509
-467
_docs_en.properties
h2/src/docsrc/textbase/_docs_en.properties
+479
-465
help.csv
h2/src/main/org/h2/res/help.csv
+1
-1
Column.java
h2/src/main/org/h2/table/Column.java
+23
-17
TestAlter.java
h2/src/test/org/h2/test/db/TestAlter.java
+2
-1
TestBackup.java
h2/src/test/org/h2/test/db/TestBackup.java
+2
-1
TestFileLockProcess.java
h2/src/test/org/h2/test/unit/TestFileLockProcess.java
+1
-1
dictionary.txt
h2/src/tools/org/h2/build/doc/dictionary.txt
+1
-1
没有找到文件。
h2/src/docsrc/html/changelog.html
浏览文件 @
141eb744
...
...
@@ -20,21 +20,21 @@ Change Log
<h2>
Next Version (unreleased)
</h2>
<ul><li>
New built-in function ARRAY_CONTAINS.
</li><li>
Some DatabaseMetaData methods didn't work when using ALLOW_LITERALS NONE.
</li><li>
Trying to convert a VARCHAR to UUID will now fail if the text contains
</li><li>
Trying to convert a VARCHAR to UUID will now fail if the text contains
a character that is not a hex digit, '-', or not a whitespace.
</li><li>
TriggerAdapter: in "before" triggers, values can be changed using the ResultSet.updateX methods.
</li><li>
Creating a table with column data type NULL now works (even if not very useful).
</li><li>
ALTER TABLE ALTER COLUMN no longer copies the data for widening conversions
(for example if only the precision was increased) unless necessary.
</li><li>
Multi-threaded kernel: concurrently running an online backup
and updating the database resulted in a broken (transactionally incorrect)
and updating the database resulted in a broken (transactionally incorrect)
backup file in some cases.
</li><li>
The script created by SCRIPT DROP did not always work if multiple views
existed that depend on each other.
</li><li>
MathUtils.getSecureRandom could log a warning to System.err in case
the /dev/random is very slow, and the System.getProperties().toString()
returned a string larger than 64 KB.
</li><li>
The database file locking mechanism "FS" (;FILE_LOCK=FS)
returned a string larger than 64 KB.
</li><li>
The database file locking mechanism "FS" (;FILE_LOCK=FS)
did not work on Linux since version 1.3.161.
</li><li>
Sequences: the functions NEXTVAL and CURRVAL did not work as expected
when using quoted, mixed case sequence names.
...
...
h2/src/docsrc/text/_docs_en.utf8.txt
浏览文件 @
141eb744
差异被折叠。
点击展开。
h2/src/docsrc/text/_docs_ja.utf8.txt
浏览文件 @
141eb744
差异被折叠。
点击展开。
h2/src/docsrc/textbase/_docs_en.properties
浏览文件 @
141eb744
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
浏览文件 @
141eb744
...
...
@@ -1234,7 +1234,7 @@ Returns the length of an array."
"Functions (System)","ARRAY_CONTAINS","
ARRAY_CONTAINS(arrayExpression, value)
","
Returns true if the array contains the value."
Returns
a boolean
true if the array contains the value."
"Functions (System)","AUTOCOMMIT","
AUTOCOMMIT()
","
...
...
h2/src/main/org/h2/table/Column.java
浏览文件 @
141eb744
...
...
@@ -650,6 +650,7 @@ public class Column {
* Check whether the new column is of the same type and not more restricted
* than this column.
*
* @param newColumn the new (target) column
* @return true if the new column is compatible
*/
public
boolean
isWideningConversion
(
Column
newColumn
)
{
...
...
@@ -689,26 +690,31 @@ public class Column {
return
true
;
}
public
void
copy
(
Column
newColumn
)
{
checkConstraint
=
newColumn
.
checkConstraint
;
checkConstraintSQL
=
newColumn
.
checkConstraintSQL
;
displaySize
=
newColumn
.
displaySize
;
name
=
newColumn
.
name
;
precision
=
newColumn
.
precision
;
scale
=
newColumn
.
scale
;
/**
* Copy the data of the source column into the current column.
*
* @param source the source column
*/
public
void
copy
(
Column
source
)
{
checkConstraint
=
source
.
checkConstraint
;
checkConstraintSQL
=
source
.
checkConstraintSQL
;
displaySize
=
source
.
displaySize
;
name
=
source
.
name
;
precision
=
source
.
precision
;
scale
=
source
.
scale
;
// table is not set
// columnId is not set
nullable
=
newColumn
.
nullable
;
defaultExpression
=
newColumn
.
defaultExpression
;
originalSQL
=
newColumn
.
originalSQL
;
nullable
=
source
.
nullable
;
defaultExpression
=
source
.
defaultExpression
;
originalSQL
=
source
.
originalSQL
;
// autoIncrement, start, increment is not set
convertNullToDefault
=
newColumn
.
convertNullToDefault
;
sequence
=
newColumn
.
sequence
;
comment
=
newColumn
.
comment
;
computeTableFilter
=
newColumn
.
computeTableFilter
;
isComputed
=
newColumn
.
isComputed
;
selectivity
=
newColumn
.
selectivity
;
primaryKey
=
newColumn
.
primaryKey
;
convertNullToDefault
=
source
.
convertNullToDefault
;
sequence
=
source
.
sequence
;
comment
=
source
.
comment
;
computeTableFilter
=
source
.
computeTableFilter
;
isComputed
=
source
.
isComputed
;
selectivity
=
source
.
selectivity
;
primaryKey
=
source
.
primaryKey
;
}
}
h2/src/test/org/h2/test/db/TestAlter.java
浏览文件 @
141eb744
...
...
@@ -137,7 +137,8 @@ public class TestAlter extends TestBase {
}
private
void
testAlterTableAlterColumn2
()
throws
SQLException
{
// ensure that increasing a VARCHAR columns length takes effect because we optimise this case
// ensure that increasing a VARCHAR columns length takes effect because
// we optimize this case
stat
.
execute
(
"create table t(x varchar(2)) as select 'x'"
);
stat
.
execute
(
"alter table t alter column x varchar(20)"
);
stat
.
execute
(
"insert into t values('Hello')"
);
...
...
h2/src/test/org/h2/test/db/TestBackup.java
浏览文件 @
141eb744
...
...
@@ -128,7 +128,8 @@ public class TestBackup extends TestBase {
// ignore
}
if
(
x
%
400
==
0
)
{
// System.out.println("state: " + state + " name: " + name + " x:" + x + "/" + max);
// System.out.println("state: " + state +
// " name: " + name + " x:" + x + "/" + max);
}
}
...
...
h2/src/test/org/h2/test/unit/TestFileLockProcess.java
浏览文件 @
141eb744
...
...
@@ -70,7 +70,7 @@ public class TestFileLockProcess extends TestBase {
deleteDb
(
"lock"
);
}
p
ublic
void
test
(
int
count
,
String
url
)
throws
Exception
{
p
rivate
void
test
(
int
count
,
String
url
)
throws
Exception
{
Connection
conn
=
DriverManager
.
getConnection
(
url
);
String
selfDestruct
=
SelfDestructor
.
getPropertyString
(
60
);
String
[]
procDef
=
{
"java"
,
selfDestruct
,
...
...
h2/src/tools/org/h2/build/doc/dictionary.txt
浏览文件 @
141eb744
...
...
@@ -696,4 +696,4 @@ pst patadia summertime jalpesh scheme compilable ski takanori dsts kawashima
kokoci seldom jaros ciphers srcs invectorate noah nfontes fontes recoding
minecraft videos youtube dataflyer bukkit alessio adamo jacopo angel leon frost
deserializing eckenfelder daniel serodio dirname semicolons whose stretch
stabilize succeeded
stabilize succeeded
widening optimise deprecate increasing
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论