提交 22bf24ad authored 作者: Leonid Bushuev's avatar Leonid Bushuev

Fix JdbcResultSet.setFetchDirection() throws 'Feature not supported' #144

上级 05821d35
...@@ -2613,8 +2613,14 @@ public class JdbcResultSet extends TraceObject implements ResultSet { ...@@ -2613,8 +2613,14 @@ 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)
if (direction == ResultSet.FETCH_FORWARD) {
// do nothing, it's already FETCH_FORWARD
}
else {
throw unsupported("setFetchDirection"); throw unsupported("setFetchDirection");
} }
}
/** /**
* Get the result set type. * Get the result set type.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论