提交 d7c685df authored 作者: Thomas Mueller's avatar Thomas Mueller

"select count(*) ..." queries always return one row (but you have to call ResultSet.next())

上级 58e77ed4
......@@ -675,6 +675,7 @@ public class LobStorageBackend implements LobStorageInterface {
PreparedStatement prep = prepare(sql);
prep.setLong(1, lobId);
ResultSet rs = prep.executeQuery();
rs.next();
int lobMapCount = rs.getInt(1);
if (lobMapCount == 0) {
throw DbException.get(ErrorCode.IO_EXCEPTION_1,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论