Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
cf713424
提交
cf713424
authored
8月 16, 2009
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
--no commit message
上级
f2c4f557
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
29 行增加
和
16 行删除
+29
-16
changelog.html
h2/src/docsrc/html/changelog.html
+3
-1
JdbcConnection.java
h2/src/main/org/h2/jdbc/JdbcConnection.java
+1
-1
Trace.java
h2/src/main/org/h2/message/Trace.java
+11
-11
Row.java
h2/src/main/org/h2/result/Row.java
+5
-3
TestAll.java
h2/src/test/org/h2/test/TestAll.java
+8
-0
TestAutoReconnect.java
h2/src/test/org/h2/test/unit/TestAutoReconnect.java
+1
-0
没有找到文件。
h2/src/docsrc/html/changelog.html
浏览文件 @
cf713424
...
...
@@ -18,7 +18,9 @@ Change Log
<h1>
Change Log
</h1>
<h2>
Next Version (unreleased)
</h2>
<ul><li>
Parser: sequenceName.NEXTVAL and CURRVAL did not respect the schema search path.
<ul><li>
Issue 111: Multi-version concurrency / duplicate primary key after rollback.
</li><li>
Issue 110: Multi-version concurrency / wrong exception is thrown.
</li><li>
Parser: sequenceName.NEXTVAL and CURRVAL did not respect the schema search path.
</li><li>
The following sequence could throw the exception "Row not found when trying to delete":
start a transaction, insert many rows, delete many rows, rollback. The number of rows depends
on the cache size.
...
...
h2/src/main/org/h2/jdbc/JdbcConnection.java
浏览文件 @
cf713424
...
...
@@ -115,7 +115,7 @@ public class JdbcConnection extends TraceObject implements Connection {
if
(
isInfoEnabled
())
{
trace
.
infoCode
(
"Connection "
+
getTraceObjectName
()
+
" = DriverManager.getConnection("
+
quote
(
ci
.
getOriginalURL
())
+
", "
+
quote
(
user
)
+
", \"\")"
);
+
", "
+
quote
(
user
)
+
", \"\")
;
"
);
}
this
.
url
=
ci
.
getURL
();
openStackTrace
=
new
Exception
(
"Stack Trace"
);
...
...
h2/src/main/org/h2/message/Trace.java
浏览文件 @
cf713424
...
...
@@ -191,17 +191,6 @@ public class Trace {
}
}
/**
* Write Java source code with trace level INFO to the trace system.
*
* @param java the source code
*/
public
void
infoCode
(
String
java
)
{
if
(
isEnabled
(
TraceSystem
.
INFO
))
{
traceWriter
.
write
(
TraceSystem
.
INFO
,
module
,
lineSeparator
+
"/**/"
+
java
,
null
);
}
}
/**
* Write a SQL statement with trace level INFO to the trace system.
*
...
...
@@ -269,6 +258,17 @@ public class Trace {
}
}
/**
* Write Java source code with trace level INFO to the trace system.
*
* @param java the source code
*/
public
void
infoCode
(
String
java
)
{
if
(
isEnabled
(
TraceSystem
.
INFO
))
{
traceWriter
.
write
(
TraceSystem
.
INFO
,
module
,
lineSeparator
+
"/**/"
+
java
,
null
);
}
}
/**
* Write Java source code with trace level DEBUG to the trace system.
*
...
...
h2/src/main/org/h2/result/Row.java
浏览文件 @
cf713424
...
...
@@ -95,9 +95,11 @@ public class Row extends Record implements SearchRow {
buff
.
append
(
" deleted"
);
}
buff
.
append
(
" */ "
);
for
(
Value
v
:
data
)
{
buff
.
appendExceptFirst
(
", "
);
buff
.
append
(
v
==
null
?
"null"
:
v
.
getTraceSQL
());
if
(
data
!=
null
)
{
for
(
Value
v
:
data
)
{
buff
.
appendExceptFirst
(
", "
);
buff
.
append
(
v
==
null
?
"null"
:
v
.
getTraceSQL
());
}
}
return
buff
.
append
(
')'
).
toString
();
}
...
...
h2/src/test/org/h2/test/TestAll.java
浏览文件 @
cf713424
...
...
@@ -293,8 +293,16 @@ java org.h2.test.TestAll timer
System
.
setProperty
(
"h2.maxMemoryRowsDistinct"
,
"128"
);
System
.
setProperty
(
"h2.check2"
,
"true"
);
int
test2
;
//System.setProperty("h2.optimizeInList", "true");
/*
OPTIMIZE_IN_LIST
use ... parameters (main, Message.getSQLException, trace?)
H2 Console: if number of items is low (calculate that first), display data types, otherwise not.
Always display indexes and views in all schemas.
-------------
create a short documentation
...
...
h2/src/test/org/h2/test/unit/TestAutoReconnect.java
浏览文件 @
cf713424
...
...
@@ -46,6 +46,7 @@ public class TestAutoReconnect extends TestBase implements DatabaseEventListener
connServer
.
createStatement
().
execute
(
"SHUTDOWN"
);
connServer
.
close
();
}
org
.
h2
.
Driver
.
load
();
connServer
=
DriverManager
.
getConnection
(
url
);
}
else
{
server
.
stop
();
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论