提交 950d4a99 编写于 作者: S serge-rider

#2792 Results fetch - error handling (+ Sybase workaround)

上级 fff5b222
......@@ -444,7 +444,14 @@ public class SQLQueryJob extends DataSourceJob
}
if (dataSource.getInfo().supportsMultipleResults()) {
hasResultSet = dbcStatement.nextResults();
try {
hasResultSet = dbcStatement.nextResults();
} catch (DBCException e) {
log.error(e);
// #2792: Check this twice. Some drivers (e.g. Sybase jConnect)
// throw error on n'th result fetch - but it still can keep fetching next results
hasResultSet = dbcStatement.nextResults();
}
updateCount = hasResultSet ? -1 : 0;
} else {
break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册