Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
d7f4e816
提交
d7f4e816
authored
9月 03, 2010
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Documentation.
上级
23959cee
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
20 行增加
和
15 行删除
+20
-15
help.csv
h2/src/docsrc/help/help.csv
+5
-2
changelog.html
h2/src/docsrc/html/changelog.html
+4
-1
Expression.java
h2/src/main/org/h2/expression/Expression.java
+2
-2
TreeIndex.java
h2/src/main/org/h2/index/TreeIndex.java
+1
-1
JdbcDatabaseMetaData.java
h2/src/main/org/h2/jdbc/JdbcDatabaseMetaData.java
+5
-6
JdbcResultSet.java
h2/src/main/org/h2/jdbc/JdbcResultSet.java
+2
-2
FileLock.java
h2/src/main/org/h2/store/FileLock.java
+1
-1
没有找到文件。
h2/src/docsrc/help/help.csv
浏览文件 @
d7f4e816
...
...
@@ -1611,8 +1611,11 @@ LIKE 'Jo%'
| referentialConstraint }
| PRIMARY KEY [ HASH ] ( columnName [,...] )
","
Defines a constraint. The check condition must evaluate to true or to NULL (to
prevent NULL, use NOT NULL).
Defines a constraint.
The check condition must evaluate to TRUE, FALSE or NULL.
TRUE and NULL mean the operation is to be permitted,
and FALSE means the operation is to be rejected.
To prevent NULL in a column, use NOT NULL instead of a check constraint.
","
PRIMARY KEY(ID, NAME)
"
...
...
h2/src/docsrc/html/changelog.html
浏览文件 @
d7f4e816
...
...
@@ -18,7 +18,10 @@ Change Log
<h1>
Change Log
</h1>
<h2>
Next Version (unreleased)
</h2>
<ul><li>
-
<ul><li>
When adding a comment to a column that has a check constraint,
the database couldn't be re-opened.
</li><li>
New system property h2.lobClientMaxSizeMemory to set the maximum size
of a LOB object to keep in memory on the client side when using the server mode.
</li></ul>
<h2>
Version 1.2.142 (2010-08-31)
</h2>
...
...
h2/src/main/org/h2/expression/Expression.java
浏览文件 @
d7f4e816
...
...
@@ -224,9 +224,9 @@ public abstract class Expression {
}
/**
* Check whether this expression is a column and can store
null values
.
* Check whether this expression is a column and can store
NULL
.
*
* @return whether
null values are
allowed
* @return whether
NULL is
allowed
*/
public
int
getNullable
()
{
return
Column
.
NULLABLE_UNKNOWN
;
...
...
h2/src/main/org/h2/index/TreeIndex.java
浏览文件 @
d7f4e816
...
...
@@ -376,7 +376,7 @@ public class TreeIndex extends BaseIndex {
public
Cursor
findFirstOrLast
(
Session
session
,
boolean
first
)
{
if
(
first
)
{
// TODO optimization: this loops through NULL
values
// TODO optimization: this loops through NULL
Cursor
cursor
=
find
(
session
,
null
,
null
);
while
(
cursor
.
next
())
{
SearchRow
row
=
cursor
.
getSearchRow
();
...
...
h2/src/main/org/h2/jdbc/JdbcDatabaseMetaData.java
浏览文件 @
d7f4e816
...
...
@@ -459,7 +459,7 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
}
/**
* Checks i
s NULL values are sorted high (bigger than any non-null values
).
* Checks i
f NULL is sorted high (bigger than anything that is not null
).
*
* @return false by default; true if the system property h2.sortNullsHigh is
* set to true
...
...
@@ -470,7 +470,7 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
}
/**
* Checks i
s NULL values are sorted low (smaller than any non-null values
).
* Checks i
f NULL is sorted low (smaller than anything that is not null
).
*
* @return true by default; false if the system property h2.sortNullsHigh is
* set to true
...
...
@@ -481,8 +481,8 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
}
/**
* Checks i
s NULL values are sorted at the beginning (no matter if ASC or
*
DESC is
used).
* Checks i
f NULL is sorted at the beginning (no matter if ASC or DESC is
* used).
*
* @return false
*/
...
...
@@ -492,8 +492,7 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
}
/**
* Checks is NULL values are sorted at the end (no matter if ASC or DESC is
* used).
* Checks if NULL is sorted at the end (no matter if ASC or DESC is used).
*
* @return false
*/
...
...
h2/src/main/org/h2/jdbc/JdbcResultSet.java
浏览文件 @
d7f4e816
...
...
@@ -140,9 +140,9 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
}
/**
* Returns whether the last column accessed was
a null value
.
* Returns whether the last column accessed was
null
.
*
* @return true if the last column accessed was
a null value
* @return true if the last column accessed was
null
*/
public
boolean
wasNull
()
throws
SQLException
{
try
{
...
...
h2/src/main/org/h2/store/FileLock.java
浏览文件 @
d7f4e816
...
...
@@ -22,10 +22,10 @@ import org.h2.message.DbException;
import
org.h2.message.Trace
;
import
org.h2.message.TraceSystem
;
import
org.h2.store.fs.FileSystem
;
import
org.h2.util.StringUtils
;
import
org.h2.util.MathUtils
;
import
org.h2.util.NetUtils
;
import
org.h2.util.SortedProperties
;
import
org.h2.util.StringUtils
;
import
org.h2.value.Transfer
;
/**
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论