Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
a0757644
提交
a0757644
authored
6月 03, 2009
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
More bugs in the server-less multi-connection mode - reconnected only one statement.
上级
fbbecfe6
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
18 行增加
和
22 行删除
+18
-22
changelog.html
h2/src/docsrc/html/changelog.html
+1
-1
JdbcConnection.java
h2/src/main/org/h2/jdbc/JdbcConnection.java
+5
-10
JdbcStatement.java
h2/src/main/org/h2/jdbc/JdbcStatement.java
+7
-7
JdbcXAConnection.java
h2/src/main/org/h2/jdbcx/JdbcXAConnection.java
+2
-2
TestAll.java
h2/src/test/org/h2/test/TestAll.java
+3
-2
没有找到文件。
h2/src/docsrc/html/changelog.html
浏览文件 @
a0757644
...
@@ -18,7 +18,7 @@ Change Log
...
@@ -18,7 +18,7 @@ Change Log
<h1>
Change Log
</h1>
<h1>
Change Log
</h1>
<h2>
Next Version (unreleased)
</h2>
<h2>
Next Version (unreleased)
</h2>
<ul><li>
-
<ul><li>
More bugs in the server-less multi-connection mode have been fixed.
</li></ul>
</li></ul>
<h2>
Version 1.1.114 (2009-06-01)
</h2>
<h2>
Version 1.1.114 (2009-06-01)
</h2>
...
...
h2/src/main/org/h2/jdbc/JdbcConnection.java
浏览文件 @
a0757644
...
@@ -1273,22 +1273,20 @@ public class JdbcConnection extends TraceObject implements Connection {
...
@@ -1273,22 +1273,20 @@ public class JdbcConnection extends TraceObject implements Connection {
* Check if this connection is closed.
* Check if this connection is closed.
* The next operation is a read request.
* The next operation is a read request.
*
*
* @return true if the session was re-connected
* @throws SQLException if the connection or session is closed
* @throws SQLException if the connection or session is closed
*/
*/
protected
boolean
checkClosed
()
throws
SQLException
{
protected
void
checkClosed
()
throws
SQLException
{
return
checkClosed
(
false
);
checkClosed
(
false
);
}
}
/**
/**
* Check if this connection is closed.
* Check if this connection is closed.
* The next operation may be a write request.
* The next operation may be a write request.
*
*
* @return true if the session was re-connected
* @throws SQLException if the connection or session is closed
* @throws SQLException if the connection or session is closed
*/
*/
private
boolean
checkClosedForWrite
()
throws
SQLException
{
private
void
checkClosedForWrite
()
throws
SQLException
{
return
checkClosed
(
true
);
checkClosed
(
);
}
}
/**
/**
...
@@ -1296,10 +1294,9 @@ public class JdbcConnection extends TraceObject implements Connection {
...
@@ -1296,10 +1294,9 @@ public class JdbcConnection extends TraceObject implements Connection {
* Check if this connection is closed.
* Check if this connection is closed.
*
*
* @param write if the next operation is possibly writing
* @param write if the next operation is possibly writing
* @return true if the session was re-connected
* @throws SQLException if the connection or session is closed
* @throws SQLException if the connection or session is closed
*/
*/
protected
boolean
checkClosed
(
boolean
write
)
throws
SQLException
{
protected
void
checkClosed
(
boolean
write
)
throws
SQLException
{
if
(
session
==
null
)
{
if
(
session
==
null
)
{
throw
Message
.
getSQLException
(
ErrorCode
.
OBJECT_CLOSED
);
throw
Message
.
getSQLException
(
ErrorCode
.
OBJECT_CLOSED
);
}
}
...
@@ -1310,9 +1307,7 @@ public class JdbcConnection extends TraceObject implements Connection {
...
@@ -1310,9 +1307,7 @@ public class JdbcConnection extends TraceObject implements Connection {
trace
.
debug
(
"reconnect"
);
trace
.
debug
(
"reconnect"
);
session
=
session
.
reconnect
();
session
=
session
.
reconnect
();
setTrace
(
session
.
getTrace
());
setTrace
(
session
.
getTrace
());
return
true
;
}
}
return
false
;
}
}
String
getURL
()
throws
SQLException
{
String
getURL
()
throws
SQLException
{
...
...
h2/src/main/org/h2/jdbc/JdbcStatement.java
浏览文件 @
a0757644
...
@@ -868,14 +868,14 @@ public class JdbcStatement extends TraceObject implements Statement {
...
@@ -868,14 +868,14 @@ public class JdbcStatement extends TraceObject implements Statement {
if
(
conn
==
null
)
{
if
(
conn
==
null
)
{
throw
Message
.
getSQLException
(
ErrorCode
.
OBJECT_CLOSED
);
throw
Message
.
getSQLException
(
ErrorCode
.
OBJECT_CLOSED
);
}
}
if
(!
conn
.
checkClosed
(
write
))
{
conn
.
checkClosed
(
write
);
return
false
;
SessionInterface
s
=
conn
.
getSession
();
}
if
(
s
!=
session
)
{
do
{
session
=
s
;
session
=
conn
.
getSession
();
setTrace
(
session
.
getTrace
());
setTrace
(
session
.
getTrace
());
}
while
(
conn
.
checkClosed
(
write
));
return
true
;
return
true
;
}
return
false
;
}
}
/**
/**
...
...
h2/src/main/org/h2/jdbcx/JdbcXAConnection.java
浏览文件 @
a0757644
...
@@ -494,11 +494,11 @@ implements XAConnection, XAResource
...
@@ -494,11 +494,11 @@ implements XAConnection, XAResource
return
isClosed
||
super
.
isClosed
();
return
isClosed
||
super
.
isClosed
();
}
}
protected
synchronized
boolean
checkClosed
(
boolean
write
)
throws
SQLException
{
protected
synchronized
void
checkClosed
(
boolean
write
)
throws
SQLException
{
if
(
isClosed
)
{
if
(
isClosed
)
{
throw
Message
.
getSQLException
(
ErrorCode
.
OBJECT_CLOSED
);
throw
Message
.
getSQLException
(
ErrorCode
.
OBJECT_CLOSED
);
}
}
return
super
.
checkClosed
(
write
);
super
.
checkClosed
(
write
);
}
}
}
}
...
...
h2/src/test/org/h2/test/TestAll.java
浏览文件 @
a0757644
...
@@ -293,8 +293,9 @@ java org.h2.test.TestAll timer
...
@@ -293,8 +293,9 @@ java org.h2.test.TestAll timer
/*
/*
shell tool: document encoding problem. mac: use
shell tool: document encoding problem.
java -Dfile.encoding=UTF-8;
mac: java -Dfile.encoding=UTF-8
windows:
test case for running out of disk space (using a special file system)
test case for running out of disk space (using a special file system)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论