Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
d57c80c0
提交
d57c80c0
authored
8月 02, 2009
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
boolean getX > isX
上级
679b07b0
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
17 行增加
和
16 行删除
+17
-16
LogFile.java
h2/src/main/org/h2/log/LogFile.java
+1
-1
UndoLogRecord.java
h2/src/main/org/h2/log/UndoLogRecord.java
+1
-1
Row.java
h2/src/main/org/h2/result/Row.java
+1
-1
RowList.java
h2/src/main/org/h2/result/RowList.java
+1
-1
Schema.java
h2/src/main/org/h2/schema/Schema.java
+8
-7
TriggerObject.java
h2/src/main/org/h2/schema/TriggerObject.java
+3
-3
Record.java
h2/src/main/org/h2/store/Record.java
+1
-1
Storage.java
h2/src/main/org/h2/store/Storage.java
+1
-1
没有找到文件。
h2/src/main/org/h2/log/LogFile.java
浏览文件 @
d57c80c0
...
...
@@ -535,7 +535,7 @@ public class LogFile {
DataPage
buff
=
rowBuff
;
buff
.
reset
();
buff
.
writeInt
(
0
);
if
(
record
.
get
Deleted
())
{
if
(
record
.
is
Deleted
())
{
buff
.
writeByte
((
byte
)
'D'
);
}
else
{
buff
.
writeByte
((
byte
)
'I'
);
...
...
h2/src/main/org/h2/log/UndoLogRecord.java
浏览文件 @
d57c80c0
...
...
@@ -94,7 +94,7 @@ public class UndoLogRecord {
state
=
IN_MEMORY
;
}
if
(
session
.
getDatabase
().
getLockMode
()
==
Constants
.
LOCK_MODE_OFF
)
{
if
(
row
.
get
Deleted
())
{
if
(
row
.
is
Deleted
())
{
// it might have been deleted by another thread
return
;
}
...
...
h2/src/main/org/h2/result/Row.java
浏览文件 @
d57c80c0
...
...
@@ -91,7 +91,7 @@ public class Row extends Record implements SearchRow {
if
(
version
!=
0
)
{
buff
.
append
(
" v:"
+
version
);
}
if
(
get
Deleted
())
{
if
(
is
Deleted
())
{
buff
.
append
(
" deleted"
);
}
buff
.
append
(
" */ "
);
...
...
h2/src/main/org/h2/result/RowList.java
浏览文件 @
d57c80c0
...
...
@@ -57,7 +57,7 @@ public class RowList {
buff
.
writeInt
(
r
.
getColumnCount
());
buff
.
writeInt
(
r
.
getPos
());
buff
.
writeInt
(
r
.
getVersion
());
buff
.
writeInt
(
r
.
get
Deleted
()
?
1
:
0
);
buff
.
writeInt
(
r
.
is
Deleted
()
?
1
:
0
);
buff
.
writeInt
(
r
.
getSessionId
());
buff
.
writeInt
(
r
.
getStorageId
());
for
(
int
i
=
0
;
i
<
r
.
getColumnCount
();
i
++)
{
...
...
h2/src/main/org/h2/schema/Schema.java
浏览文件 @
d57c80c0
...
...
@@ -339,7 +339,7 @@ public class Schema extends DbObjectBase {
*/
public
String
getUniqueConstraintName
(
Session
session
,
Table
table
)
{
HashMap
<
String
,
Constraint
>
tableConstraints
;
if
(
table
.
getTemporary
()
&&
!
table
.
get
GlobalTemporary
())
{
if
(
table
.
isTemporary
()
&&
!
table
.
is
GlobalTemporary
())
{
tableConstraints
=
session
.
getLocalTempTableConstraints
();
}
else
{
tableConstraints
=
constraints
;
...
...
@@ -357,7 +357,7 @@ public class Schema extends DbObjectBase {
*/
public
String
getUniqueIndexName
(
Session
session
,
Table
table
,
String
prefix
)
{
HashMap
<
String
,
Index
>
tableIndexes
;
if
(
table
.
getTemporary
()
&&
!
table
.
get
GlobalTemporary
())
{
if
(
table
.
isTemporary
()
&&
!
table
.
is
GlobalTemporary
())
{
tableIndexes
=
session
.
getLocalTempTableIndexes
();
}
else
{
tableIndexes
=
indexes
;
...
...
@@ -486,17 +486,18 @@ public class Schema extends DbObjectBase {
* @param tableName the table name
* @param id the object id
* @param columns the column list
* @param persistIndexes if indexes of the table should be persistent
* @param persistData if data of the table should be persistent
* @param clustered if a clustered table should be created
* @param temporary whether this is a temporary table
* @param persistIndexes whether indexes of the table should be persistent
* @param persistData whether data of the table should be persistent
* @param clustered whether a clustered table should be created
* @param headPos the position (page number) of the head
* @param session the session
* @return the created {@link TableData} object
*/
public
TableData
createTable
(
String
tableName
,
int
id
,
ObjectArray
<
Column
>
columns
,
boolean
persistIndexes
,
boolean
persistData
,
boolean
clustered
,
int
headPos
,
Session
session
)
public
TableData
createTable
(
String
tableName
,
int
id
,
ObjectArray
<
Column
>
columns
,
boolean
temporary
,
boolean
persistIndexes
,
boolean
persistData
,
boolean
clustered
,
int
headPos
,
Session
session
)
throws
SQLException
{
synchronized
(
database
)
{
return
new
TableData
(
this
,
tableName
,
id
,
columns
,
persistIndexes
,
persistData
,
clustered
,
headPos
,
session
);
return
new
TableData
(
this
,
tableName
,
id
,
columns
,
temporary
,
persistIndexes
,
persistData
,
clustered
,
headPos
,
session
);
}
}
...
...
h2/src/main/org/h2/schema/TriggerObject.java
浏览文件 @
d57c80c0
...
...
@@ -47,7 +47,7 @@ public class TriggerObject extends SchemaObjectBase {
public
TriggerObject
(
Schema
schema
,
int
id
,
String
name
,
Table
table
)
{
initSchemaObjectBase
(
schema
,
id
,
name
,
Trace
.
TRIGGER
);
this
.
table
=
table
;
setTemporary
(
table
.
get
Temporary
());
setTemporary
(
table
.
is
Temporary
());
}
public
void
setBefore
(
boolean
before
)
{
...
...
@@ -222,7 +222,7 @@ public class TriggerObject extends SchemaObjectBase {
this
.
noWait
=
noWait
;
}
public
boolean
get
NoWait
()
{
public
boolean
is
NoWait
()
{
return
noWait
;
}
...
...
@@ -311,7 +311,7 @@ public class TriggerObject extends SchemaObjectBase {
*
* @return true if it is
*/
public
boolean
get
Before
()
{
public
boolean
is
Before
()
{
return
before
;
}
...
...
h2/src/main/org/h2/store/Record.java
浏览文件 @
d57c80c0
...
...
@@ -79,7 +79,7 @@ public abstract class Record extends CacheObject {
this
.
sessionId
=
0
;
}
public
boolean
get
Deleted
()
{
public
boolean
is
Deleted
()
{
return
deleted
;
}
...
...
h2/src/main/org/h2/store/Storage.java
浏览文件 @
d57c80c0
...
...
@@ -199,7 +199,7 @@ public class Storage {
public
void
removeRecord
(
Session
session
,
int
pos
)
throws
SQLException
{
checkOnePage
();
Record
record
=
getRecord
(
session
,
pos
);
if
(
SysProperties
.
CHECK
&&
record
.
get
Deleted
())
{
if
(
SysProperties
.
CHECK
&&
record
.
is
Deleted
())
{
Message
.
throwInternalError
(
"duplicate delete "
+
pos
);
}
record
.
setDeleted
(
true
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论