Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
a0c715b5
提交
a0c715b5
authored
6月 24, 2015
作者:
Noel Grandin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix the previous commit and add a changelog
上级
339b153c
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
14 行增加
和
9 行删除
+14
-9
changelog.html
h2/src/docsrc/html/changelog.html
+2
-0
JdbcResultSet.java
h2/src/main/org/h2/jdbc/JdbcResultSet.java
+12
-9
没有找到文件。
h2/src/docsrc/html/changelog.html
浏览文件 @
a0c715b5
...
@@ -21,6 +21,8 @@ Change Log
...
@@ -21,6 +21,8 @@ Change Log
<h2>
Next Version (unreleased)
</h2>
<h2>
Next Version (unreleased)
</h2>
<ul>
<ul>
<li>
Fix for #144, JdbcResultSet.setFetchDirection() throws "Feature not supported"
</li>
<li>
Fix for issue #143, deadlock between two sessions hitting the same sequence on a column
<li>
Fix for issue #143, deadlock between two sessions hitting the same sequence on a column
</li>
</li>
<li>
Pull request #137: SourceCompiler should not throw a syntax error on javac warning.
<li>
Pull request #137: SourceCompiler should not throw a syntax error on javac warning.
...
...
h2/src/main/org/h2/jdbc/JdbcResultSet.java
浏览文件 @
a0c715b5
...
@@ -27,6 +27,7 @@ import java.sql.Timestamp;
...
@@ -27,6 +27,7 @@ import java.sql.Timestamp;
import
java.util.Calendar
;
import
java.util.Calendar
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
import
org.h2.api.ErrorCode
;
import
org.h2.api.ErrorCode
;
import
org.h2.engine.SysProperties
;
import
org.h2.engine.SysProperties
;
import
org.h2.message.DbException
;
import
org.h2.message.DbException
;
...
@@ -754,7 +755,8 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
...
@@ -754,7 +755,8 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
* @throws SQLException if the column is not found or if the result set is
* @throws SQLException if the column is not found or if the result set is
* closed
* closed
*/
*/
@Override
@Deprecated
@Override
public
BigDecimal
getBigDecimal
(
String
columnLabel
,
int
scale
)
public
BigDecimal
getBigDecimal
(
String
columnLabel
,
int
scale
)
throws
SQLException
{
throws
SQLException
{
try
{
try
{
...
@@ -783,7 +785,8 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
...
@@ -783,7 +785,8 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
* @throws SQLException if the column is not found or if the result set is
* @throws SQLException if the column is not found or if the result set is
* closed
* closed
*/
*/
@Override
@Deprecated
@Override
public
BigDecimal
getBigDecimal
(
int
columnIndex
,
int
scale
)
public
BigDecimal
getBigDecimal
(
int
columnIndex
,
int
scale
)
throws
SQLException
{
throws
SQLException
{
try
{
try
{
...
@@ -804,7 +807,8 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
...
@@ -804,7 +807,8 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
* [Not supported]
* [Not supported]
* @deprecated since JDBC 2.0, use getCharacterStream
* @deprecated since JDBC 2.0, use getCharacterStream
*/
*/
@Override
@Deprecated
@Override
public
InputStream
getUnicodeStream
(
int
columnIndex
)
throws
SQLException
{
public
InputStream
getUnicodeStream
(
int
columnIndex
)
throws
SQLException
{
throw
unsupported
(
"unicodeStream"
);
throw
unsupported
(
"unicodeStream"
);
}
}
...
@@ -813,7 +817,8 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
...
@@ -813,7 +817,8 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
* [Not supported]
* [Not supported]
* @deprecated since JDBC 2.0, use setCharacterStream
* @deprecated since JDBC 2.0, use setCharacterStream
*/
*/
@Override
@Deprecated
@Override
public
InputStream
getUnicodeStream
(
String
columnLabel
)
throws
SQLException
{
public
InputStream
getUnicodeStream
(
String
columnLabel
)
throws
SQLException
{
throw
unsupported
(
"unicodeStream"
);
throw
unsupported
(
"unicodeStream"
);
}
}
...
@@ -2613,11 +2618,9 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
...
@@ -2613,11 +2618,9 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
*/
*/
@Override
@Override
public
void
setFetchDirection
(
int
direction
)
throws
SQLException
{
public
void
setFetchDirection
(
int
direction
)
throws
SQLException
{
debugCodeCall
(
"setFetchDirection"
,
direction
)
debugCodeCall
(
"setFetchDirection"
,
direction
);
if
(
direction
==
ResultSet
.
FETCH_FORWARD
)
{
// ignore FETCH_FORWARD, that's the default value, which we do support
// do nothing, it's already FETCH_FORWARD
if
(
direction
!=
ResultSet
.
FETCH_FORWARD
)
{
}
else
{
throw
unsupported
(
"setFetchDirection"
);
throw
unsupported
(
"setFetchDirection"
);
}
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论