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
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."
...
@@ -1234,7 +1234,7 @@ Returns the length of an array."
"Functions (System)","ARRAY_CONTAINS","
"Functions (System)","ARRAY_CONTAINS","
ARRAY_CONTAINS(arrayExpression, value)
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","
"Functions (System)","AUTOCOMMIT","
AUTOCOMMIT()
AUTOCOMMIT()
","
","
...
...
h2/src/main/org/h2/table/Column.java
浏览文件 @
141eb744
...
@@ -650,6 +650,7 @@ public class Column {
...
@@ -650,6 +650,7 @@ public class Column {
* Check whether the new column is of the same type and not more restricted
* Check whether the new column is of the same type and not more restricted
* than this column.
* than this column.
*
*
* @param newColumn the new (target) column
* @return true if the new column is compatible
* @return true if the new column is compatible
*/
*/
public
boolean
isWideningConversion
(
Column
newColumn
)
{
public
boolean
isWideningConversion
(
Column
newColumn
)
{
...
@@ -689,26 +690,31 @@ public class Column {
...
@@ -689,26 +690,31 @@ public class Column {
return
true
;
return
true
;
}
}
public
void
copy
(
Column
newColumn
)
{
/**
checkConstraint
=
newColumn
.
checkConstraint
;
* Copy the data of the source column into the current column.
checkConstraintSQL
=
newColumn
.
checkConstraintSQL
;
*
displaySize
=
newColumn
.
displaySize
;
* @param source the source column
name
=
newColumn
.
name
;
*/
precision
=
newColumn
.
precision
;
public
void
copy
(
Column
source
)
{
scale
=
newColumn
.
scale
;
checkConstraint
=
source
.
checkConstraint
;
checkConstraintSQL
=
source
.
checkConstraintSQL
;
displaySize
=
source
.
displaySize
;
name
=
source
.
name
;
precision
=
source
.
precision
;
scale
=
source
.
scale
;
// table is not set
// table is not set
// columnId is not set
// columnId is not set
nullable
=
newColumn
.
nullable
;
nullable
=
source
.
nullable
;
defaultExpression
=
newColumn
.
defaultExpression
;
defaultExpression
=
source
.
defaultExpression
;
originalSQL
=
newColumn
.
originalSQL
;
originalSQL
=
source
.
originalSQL
;
// autoIncrement, start, increment is not set
// autoIncrement, start, increment is not set
convertNullToDefault
=
newColumn
.
convertNullToDefault
;
convertNullToDefault
=
source
.
convertNullToDefault
;
sequence
=
newColumn
.
sequence
;
sequence
=
source
.
sequence
;
comment
=
newColumn
.
comment
;
comment
=
source
.
comment
;
computeTableFilter
=
newColumn
.
computeTableFilter
;
computeTableFilter
=
source
.
computeTableFilter
;
isComputed
=
newColumn
.
isComputed
;
isComputed
=
source
.
isComputed
;
selectivity
=
newColumn
.
selectivity
;
selectivity
=
source
.
selectivity
;
primaryKey
=
newColumn
.
primaryKey
;
primaryKey
=
source
.
primaryKey
;
}
}
}
}
h2/src/test/org/h2/test/db/TestAlter.java
浏览文件 @
141eb744
...
@@ -137,7 +137,8 @@ public class TestAlter extends TestBase {
...
@@ -137,7 +137,8 @@ public class TestAlter extends TestBase {
}
}
private
void
testAlterTableAlterColumn2
()
throws
SQLException
{
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
(
"create table t(x varchar(2)) as select 'x'"
);
stat
.
execute
(
"alter table t alter column x varchar(20)"
);
stat
.
execute
(
"alter table t alter column x varchar(20)"
);
stat
.
execute
(
"insert into t values('Hello')"
);
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 {
...
@@ -128,7 +128,8 @@ public class TestBackup extends TestBase {
// ignore
// ignore
}
}
if
(
x
%
400
==
0
)
{
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 {
...
@@ -70,7 +70,7 @@ public class TestFileLockProcess extends TestBase {
deleteDb
(
"lock"
);
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
);
Connection
conn
=
DriverManager
.
getConnection
(
url
);
String
selfDestruct
=
SelfDestructor
.
getPropertyString
(
60
);
String
selfDestruct
=
SelfDestructor
.
getPropertyString
(
60
);
String
[]
procDef
=
{
"java"
,
selfDestruct
,
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
...
@@ -696,4 +696,4 @@ pst patadia summertime jalpesh scheme compilable ski takanori dsts kawashima
kokoci seldom jaros ciphers srcs invectorate noah nfontes fontes recoding
kokoci seldom jaros ciphers srcs invectorate noah nfontes fontes recoding
minecraft videos youtube dataflyer bukkit alessio adamo jacopo angel leon frost
minecraft videos youtube dataflyer bukkit alessio adamo jacopo angel leon frost
deserializing eckenfelder daniel serodio dirname semicolons whose stretch
deserializing eckenfelder daniel serodio dirname semicolons whose stretch
stabilize succeeded
stabilize succeeded
widening optimise deprecate increasing
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论