Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
065aa507
提交
065aa507
authored
7月 28, 2013
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Prepare release.
上级
121598c2
全部展开
显示空白字符变更
内嵌
并排
正在显示
39 个修改的文件
包含
906 行增加
和
779 行删除
+906
-779
help.csv
h2/src/docsrc/help/help.csv
+2
-2
changelog.html
h2/src/docsrc/html/changelog.html
+4
-4
_docs_en.utf8.txt
h2/src/docsrc/text/_docs_en.utf8.txt
+243
-210
_docs_ja.utf8.txt
h2/src/docsrc/text/_docs_ja.utf8.txt
+243
-210
_docs_en.properties
h2/src/docsrc/textbase/_docs_en.properties
+221
-210
AggregateFunction.java
h2/src/main/org/h2/api/AggregateFunction.java
+1
-1
AlterTableRenameColumn.java
h2/src/main/org/h2/command/ddl/AlterTableRenameColumn.java
+2
-1
Database.java
h2/src/main/org/h2/engine/Database.java
+3
-3
DataUtils.java
h2/src/main/org/h2/mvstore/DataUtils.java
+15
-14
FreeSpaceBitSet.java
h2/src/main/org/h2/mvstore/FreeSpaceBitSet.java
+20
-20
MVStore.java
h2/src/main/org/h2/mvstore/MVStore.java
+10
-9
MVTableEngine.java
h2/src/main/org/h2/mvstore/db/MVTableEngine.java
+3
-3
TransactionStore.java
h2/src/main/org/h2/mvstore/db/TransactionStore.java
+4
-4
MVRTreeMap.java
h2/src/main/org/h2/mvstore/rtree/MVRTreeMap.java
+21
-14
ResultTempTable.java
h2/src/main/org/h2/result/ResultTempTable.java
+2
-1
PgServerThread.java
h2/src/main/org/h2/server/pg/PgServerThread.java
+1
-1
LobStorageBackend.java
h2/src/main/org/h2/store/LobStorageBackend.java
+20
-8
Column.java
h2/src/main/org/h2/table/Column.java
+4
-1
TableBase.java
h2/src/main/org/h2/table/TableBase.java
+1
-1
SourceCompiler.java
h2/src/main/org/h2/util/SourceCompiler.java
+5
-4
DataType.java
h2/src/main/org/h2/value/DataType.java
+5
-5
ValueGeometry.java
h2/src/main/org/h2/value/ValueGeometry.java
+1
-1
TestAlter.java
h2/src/test/org/h2/test/db/TestAlter.java
+1
-1
TestCases.java
h2/src/test/org/h2/test/db/TestCases.java
+1
-1
TestCompatibility.java
h2/src/test/org/h2/test/db/TestCompatibility.java
+1
-1
TestLob.java
h2/src/test/org/h2/test/db/TestLob.java
+2
-2
TestTableEngines.java
h2/src/test/org/h2/test/db/TestTableEngines.java
+1
-1
FreeSpaceList.java
h2/src/test/org/h2/test/store/FreeSpaceList.java
+18
-6
FreeSpaceTree.java
h2/src/test/org/h2/test/store/FreeSpaceTree.java
+21
-9
TestDataUtils.java
h2/src/test/org/h2/test/store/TestDataUtils.java
+1
-1
TestFreeSpace.java
h2/src/test/org/h2/test/store/TestFreeSpace.java
+10
-10
TestMVRTree.java
h2/src/test/org/h2/test/store/TestMVRTree.java
+3
-3
TestMVStore.java
h2/src/test/org/h2/test/store/TestMVStore.java
+1
-1
TestMVTableEngine.java
h2/src/test/org/h2/test/store/TestMVTableEngine.java
+2
-2
TestTransactionStore.java
h2/src/test/org/h2/test/store/TestTransactionStore.java
+3
-3
TestFileLockSerialized.java
h2/src/test/org/h2/test/unit/TestFileLockSerialized.java
+2
-2
TestPgServer.java
h2/src/test/org/h2/test/unit/TestPgServer.java
+3
-3
Build.java
h2/src/tools/org/h2/build/Build.java
+2
-2
dictionary.txt
h2/src/tools/org/h2/build/doc/dictionary.txt
+3
-4
没有找到文件。
h2/src/docsrc/help/help.csv
浏览文件 @
065aa507
h2/src/docsrc/html/changelog.html
浏览文件 @
065aa507
...
...
@@ -60,8 +60,8 @@ Change Log
Previously it would throw an exception, now it works.
</li><li>
Issue 484: In the H2 Console tool, all schemas starting with "INFO" where hidden.
Now they are hidden only if the database is not H2. Patch from "mgcodeact"/"cumer d"
</li><li>
MySQL compatibil
t
ity, support the "AUTO_INCREMENT=3" part of the CREATE TABLE statement.
</li><li>
Issue 486: MySQL compatibil
t
ity, support the "DEFAULT CHARSET" part of the CREATE TABLE statement.
</li><li>
MySQL compatibility, support the "AUTO_INCREMENT=3" part of the CREATE TABLE statement.
</li><li>
Issue 486: MySQL compatibility, support the "DEFAULT CHARSET" part of the CREATE TABLE statement.
</li><li>
Issue 487: support the MySQL "SET foreign_key_checks = 0" command
</li><li>
Issue 490: support MySQL "USING BTREE" index declaration
</li><li>
Issue 485: Database get corrupted when column is renamed for which check constraint was defined inside create table statement.
...
...
h2/src/docsrc/text/_docs_en.utf8.txt
浏览文件 @
065aa507
差异被折叠。
点击展开。
h2/src/docsrc/text/_docs_ja.utf8.txt
浏览文件 @
065aa507
差异被折叠。
点击展开。
h2/src/docsrc/textbase/_docs_en.properties
浏览文件 @
065aa507
差异被折叠。
点击展开。
h2/src/main/org/h2/api/AggregateFunction.java
浏览文件 @
065aa507
h2/src/main/org/h2/command/ddl/AlterTableRenameColumn.java
浏览文件 @
065aa507
...
...
@@ -47,7 +47,8 @@ public class AlterTableRenameColumn extends DefineCommand {
Database
db
=
session
.
getDatabase
();
session
.
getUser
().
checkRight
(
table
,
Right
.
ALL
);
table
.
checkSupportAlter
();
// we need to update CHECK constraint since it might reference the name of the column
// we need to update CHECK constraint
// since it might reference the name of the column
Expression
newCheckExpr
=
column
.
getCheckConstraint
(
session
,
newName
);
table
.
renameColumn
(
column
,
newName
);
column
.
removeCheckConstraint
();
...
...
h2/src/main/org/h2/engine/Database.java
浏览文件 @
065aa507
h2/src/main/org/h2/mvstore/DataUtils.java
浏览文件 @
065aa507
...
...
@@ -687,6 +687,7 @@ public class DataUtils {
/**
* Create a new IllegalStateException.
*
* @param errorCode the error code
* @param message the message
* @param arguments the arguments
* @return the exception
...
...
h2/src/main/org/h2/mvstore/FreeSpaceBitSet.java
浏览文件 @
065aa507
h2/src/main/org/h2/mvstore/MVStore.java
浏览文件 @
065aa507
...
...
@@ -1459,7 +1459,8 @@ public class MVStore {
}
/**
* Set the listener to be used for exceptions that occur in the background thread.
* Set the listener to be used for exceptions that occur in the background
* thread.
*
* @param backgroundExceptionListener the listener
*/
...
...
h2/src/main/org/h2/mvstore/db/MVTableEngine.java
浏览文件 @
065aa507
...
...
@@ -197,7 +197,7 @@ public class MVTableEngine implements TableEngine {
public
void
initTransactions
()
{
List
<
Transaction
>
list
=
transactionStore
.
getOpenTransactions
();
for
(
Transaction
t
:
list
)
{
if
(
t
.
getStatus
()
==
Transaction
.
STATUS_COMITTING
)
{
if
(
t
.
getStatus
()
==
Transaction
.
STATUS_COM
M
ITTING
)
{
t
.
commit
();
}
else
if
(
t
.
getStatus
()
!=
Transaction
.
STATUS_PREPARED
)
{
t
.
rollback
();
...
...
h2/src/main/org/h2/mvstore/db/TransactionStore.java
浏览文件 @
065aa507
...
...
@@ -147,7 +147,7 @@ public class TransactionStore {
if
(
undoLog
.
containsKey
(
key
))
{
status
=
Transaction
.
STATUS_OPEN
;
}
else
{
status
=
Transaction
.
STATUS_COMITTING
;
status
=
Transaction
.
STATUS_COM
M
ITTING
;
}
name
=
null
;
}
else
{
...
...
@@ -239,7 +239,7 @@ public class TransactionStore {
return
;
}
synchronized
(
undoLog
)
{
t
.
setStatus
(
Transaction
.
STATUS_COMITTING
);
t
.
setStatus
(
Transaction
.
STATUS_COM
M
ITTING
);
for
(
long
logId
=
0
;
logId
<
maxLogId
;
logId
++)
{
commitIfNeeded
();
long
[]
undoKey
=
new
long
[]
{
t
.
getId
(),
logId
};
...
...
@@ -504,7 +504,7 @@ public class TransactionStore {
* closed while the transaction is committing. When opening a store,
* such transactions should be committed.
*/
public
static
final
int
STATUS_COMITTING
=
3
;
public
static
final
int
STATUS_COM
M
ITTING
=
3
;
/**
* The operation type for changes in a map.
...
...
h2/src/main/org/h2/mvstore/rtree/MVRTreeMap.java
浏览文件 @
065aa507
...
...
@@ -8,6 +8,7 @@ package org.h2.mvstore.rtree;
import
java.util.ArrayList
;
import
java.util.Iterator
;
import
org.h2.mvstore.CursorPos
;
import
org.h2.mvstore.DataUtils
;
import
org.h2.mvstore.MVMap
;
...
...
@@ -61,7 +62,7 @@ public class MVRTreeMap<V> extends MVMap<SpatialKey, V> {
* @param x the rectangle
* @return the iterator
*/
public
Iterator
<
SpatialKey
>
findIntersectingKeys
(
SpatialKey
x
)
{
public
RTreeCursor
findIntersectingKeys
(
SpatialKey
x
)
{
checkOpen
();
return
new
RTreeCursor
(
root
,
x
)
{
@Override
...
...
@@ -77,7 +78,7 @@ public class MVRTreeMap<V> extends MVMap<SpatialKey, V> {
* @param x the rectangle
* @return the iterator
*/
public
Iterator
<
SpatialKey
>
findContainedKeys
(
SpatialKey
x
)
{
public
RTreeCursor
findContainedKeys
(
SpatialKey
x
)
{
checkOpen
();
return
new
RTreeCursor
(
root
,
x
)
{
@Override
...
...
@@ -506,6 +507,12 @@ public class MVRTreeMap<V> extends MVMap<SpatialKey, V> {
return
current
!=
null
;
}
/**
* Skip over that many entries. This method is relatively fast (for this map
* implementation) even if many entries need to be skipped.
*
* @param n the number of entries to skip
*/
public
void
skip
(
long
n
)
{
while
(
hasNext
()
&&
n
--
>
0
)
{
fetchNext
();
...
...
h2/src/main/org/h2/result/ResultTempTable.java
浏览文件 @
065aa507
...
...
@@ -153,7 +153,8 @@ public class ResultTempTable implements ResultExternal {
}
try
{
Database
database
=
session
.
getDatabase
();
// Need to lock because not all of the code-paths that reach here have already taken this lock,
// Need to lock because not all of the code-paths
// that reach here have already taken this lock,
// notably via the close() paths.
synchronized
(
session
)
{
synchronized
(
database
)
{
...
...
h2/src/main/org/h2/server/pg/PgServerThread.java
浏览文件 @
065aa507
h2/src/main/org/h2/store/LobStorageBackend.java
浏览文件 @
065aa507
...
...
@@ -244,6 +244,12 @@ public class LobStorageBackend implements LobStorageInterface {
}
}
/**
* Create a prepared statement, or re-use an existing one.
*
* @param sql the SQL statement
* @return the prepared statement
*/
PreparedStatement
prepare
(
String
sql
)
throws
SQLException
{
if
(
SysProperties
.
CHECK2
)
{
if
(!
Thread
.
holdsLock
(
database
))
{
...
...
@@ -257,6 +263,12 @@ public class LobStorageBackend implements LobStorageInterface {
return
prep
;
}
/**
* Allow to re-use the prepared statement.
*
* @param sql the SQL statement
* @param prep the prepared statement
*/
void
reuse
(
String
sql
,
PreparedStatement
prep
)
{
if
(
SysProperties
.
CHECK2
)
{
if
(!
Thread
.
holdsLock
(
database
))
{
...
...
h2/src/main/org/h2/table/Column.java
浏览文件 @
065aa507
...
...
@@ -563,6 +563,9 @@ public class Column {
checkConstraintSQL
=
getCheckConstraintSQL
(
session
,
name
);
}
/**
* Remove the check constraint if there is one.
*/
public
void
removeCheckConstraint
()
{
checkConstraint
=
null
;
checkConstraintSQL
=
null
;
...
...
h2/src/main/org/h2/table/TableBase.java
浏览文件 @
065aa507
h2/src/main/org/h2/util/SourceCompiler.java
浏览文件 @
065aa507
...
...
@@ -211,9 +211,10 @@ public class SourceCompiler {
ByteArrayOutputStream
buff
=
new
ByteArrayOutputStream
();
try
{
ProcessBuilder
builder
=
new
ProcessBuilder
();
// The javac executable allows some of it's flags to be smuggled in via environment variables.
// But if it sees those flags, it will write out a message to stderr, which messes up our
// parsing of the output.
// The javac executable allows some of it's flags
// to be smuggled in via environment variables.
// But if it sees those flags, it will write out a message
// to stderr, which messes up our parsing of the output.
builder
.
environment
().
remove
(
"JAVA_TOOL_OPTIONS"
);
builder
.
command
(
args
);
...
...
h2/src/main/org/h2/value/DataType.java
浏览文件 @
065aa507
h2/src/main/org/h2/value/ValueGeometry.java
浏览文件 @
065aa507
h2/src/test/org/h2/test/db/TestAlter.java
浏览文件 @
065aa507
h2/src/test/org/h2/test/db/TestCases.java
浏览文件 @
065aa507
h2/src/test/org/h2/test/db/TestCompatibility.java
浏览文件 @
065aa507
h2/src/test/org/h2/test/db/TestLob.java
浏览文件 @
065aa507
...
...
@@ -1474,4 +1474,4 @@ public class TestLob extends TestBase {
conn
.
close
();
}
}
}
h2/src/test/org/h2/test/db/TestTableEngines.java
浏览文件 @
065aa507
...
...
@@ -83,7 +83,7 @@ public class TestTableEngines extends TestBase {
assertEquals
(
"param2"
,
EndlessTableEngine
.
createTableData
.
tableEngineParams
.
get
(
1
));
conn
.
close
();
if
(!
config
.
memory
)
{
// Test seriali
s
ation of table parameters
// Test seriali
z
ation of table parameters
EndlessTableEngine
.
createTableData
.
tableEngineParams
.
clear
();
conn
=
getConnection
(
"tableEngine"
);
assertEquals
(
2
,
EndlessTableEngine
.
createTableData
.
tableEngineParams
.
size
());
...
...
h2/src/test/org/h2/test/store/FreeSpaceList.java
浏览文件 @
065aa507
...
...
@@ -67,6 +67,12 @@ public class FreeSpaceList {
"Could not find a free page to allocate"
);
}
/**
* Mark the space as in use.
*
* @param pos the position in bytes
* @param length the number of bytes
*/
public
synchronized
void
markUsed
(
long
pos
,
int
length
)
{
int
start
=
(
int
)
(
pos
/
blockSize
);
int
required
=
getBlockCount
(
length
);
...
...
@@ -112,6 +118,12 @@ public class FreeSpaceList {
}
}
/**
* Mark the space as free.
*
* @param pos the position in bytes
* @param length the number of bytes
*/
public
synchronized
void
free
(
long
pos
,
int
length
)
{
int
start
=
(
int
)
(
pos
/
blockSize
);
int
required
=
getBlockCount
(
length
);
...
...
h2/src/test/org/h2/test/store/FreeSpaceTree.java
浏览文件 @
065aa507
...
...
@@ -74,6 +74,12 @@ public class FreeSpaceTree {
return
pos
;
}
/**
* Mark the space as in use.
*
* @param pos the position in bytes
* @param length the number of bytes
*/
public
synchronized
void
markUsed
(
long
pos
,
int
length
)
{
int
start
=
getBlock
(
pos
);
int
blocks
=
getBlockCount
(
length
);
...
...
@@ -104,6 +110,12 @@ public class FreeSpaceTree {
}
}
/**
* Mark the space as free.
*
* @param pos the position in bytes
* @param length the number of bytes
*/
public
synchronized
void
free
(
long
pos
,
int
length
)
{
int
start
=
getBlock
(
pos
);
int
blocks
=
getBlockCount
(
length
);
...
...
h2/src/test/org/h2/test/store/TestDataUtils.java
浏览文件 @
065aa507
h2/src/test/org/h2/test/store/TestFreeSpace.java
浏览文件 @
065aa507
h2/src/test/org/h2/test/store/TestMVRTree.java
浏览文件 @
065aa507
h2/src/test/org/h2/test/store/TestMVStore.java
浏览文件 @
065aa507
h2/src/test/org/h2/test/store/TestMVTableEngine.java
浏览文件 @
065aa507
h2/src/test/org/h2/test/store/TestTransactionStore.java
浏览文件 @
065aa507
...
...
@@ -106,7 +106,7 @@ public class TestTransactionStore extends TestBase {
List
<
Transaction
>
list
=
ts
.
getOpenTransactions
();
if
(
list
.
size
()
!=
0
)
{
tx
=
list
.
get
(
0
);
if
(
tx
.
getStatus
()
==
Transaction
.
STATUS_COMITTING
)
{
if
(
tx
.
getStatus
()
==
Transaction
.
STATUS_COM
M
ITTING
)
{
i
++;
}
}
...
...
h2/src/test/org/h2/test/unit/TestFileLockSerialized.java
浏览文件 @
065aa507
h2/src/test/org/h2/test/unit/TestPgServer.java
浏览文件 @
065aa507
h2/src/tools/org/h2/build/Build.java
浏览文件 @
065aa507
h2/src/tools/org/h2/build/doc/dictionary.txt
浏览文件 @
065aa507
...
...
@@ -730,7 +730,6 @@ customizers retains scalability assuming gili cancelled departments juerg
franklin indicated offending unimplemented executors dumping variants
presence spiess azeckoski aaron cowwoc decompiles canceling vividsolutions
quadtree envelope geometry polygon typname intersects wkt intersects wkb
coordinate geometric rates cope attempting sphere hyde clinton
computation varies
coordinate geometric rates cope attempting sphere hyde clinton taskkill
mgcodeact cumer reach notably computation varies smuggled stderr sees messes
nico devel
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论