提交 10f6b2b4 authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 4f4ab94c
......@@ -17,7 +17,7 @@ Change Log
<h2>Next Version (unreleased)</h2>
<ul><li>Multi version concurrency (MVCC): when a row was updated or deleted, but this change was rolled back,
the row was not visible by other sessions if no index was used to access it. Fixed.
the row was not visible by other sessions if no index was used to access it. Fixed.
</li><li>Views with multiple joined tables (where one was an outer join) couldn't be used in some cases. Fixed.
</li><li>Fixed the Oracle mode: Oracle allows multiple rows with NULL in a unique index.
</li><li>Running out of memory could result in incomplete transactions or corrupted databases. Fixed.
......
......@@ -95,7 +95,7 @@ If the base directory is not set (as in jdbc:h2:test), the database files are st
(the current working directory). When using the H2 Console application from the start menu, this is [Installation Directory]/bin.
The base directory can be set in the database URL. A fixed or relative path can be used. When using the URL
jdbc:h2:file:data/sample, the database is stored in the directory data (relative to the current working directory).
The directory must exist. It is also possible to use the fully qualified directory (and for Windows, drive) name.
The directory is created automatically if it does not yet exist. It is also possible to use the fully qualified directory (and for Windows, drive) name.
Example: jdbc:h2:file:C:/data/test
</p>
......
......@@ -116,7 +116,8 @@ public class UndoLogRecord {
try {
row.setPos(0);
table.addRow(session, row);
// reset session id, otherwise other session think this row was inserted by this session
// reset session id, otherwise other session think
// that this row was inserted by this session
row.commit();
} catch (SQLException e) {
if (session.getDatabase().getLockMode() == Constants.LOCK_MODE_OFF
......
......@@ -577,11 +577,11 @@ public class DiskFile implements CacheWriter {
DataPage s = DataPage.create(database, buff);
int blockCount = s.readInt();
int id = s.readInt();
if (SysProperties.CHECK && storageId != id) {
if (storageId != id) {
throw Message.getInternalError("File ID mismatch got=" + id + " expected=" + storageId + " pos=" + pos
+ " " + logChanges + " " + this + " blockCount:" + blockCount);
}
if (SysProperties.CHECK && blockCount == 0) {
if (blockCount == 0) {
throw Message.getInternalError("0 blocks to read pos=" + pos);
}
if (blockCount > 1) {
......
Hi,
Sorry I can not reproduce this problem. Could you post a simple, standalone test case that reproduces the problem? It would be great if the test case does not have any dependencies except the H2 jar file (that is, uses the JDBC API and is run using a static main method). Please include any initialization code (CREATE TABLE, INSERT and so on) in the Java class or in a .sql script file.
Regards,
Thomas
-----------------
Defect report:
What steps will reproduce the problem?
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论