From 211bad80d3a04c2c7710aff222f3e5a446b14535 Mon Sep 17 00:00:00 2001 From: LiuYoung00 Date: Fri, 15 Mar 2024 06:21:20 +0000 Subject: [PATCH] [CP] Modification time of last_row tag modification --- src/observer/mysql/obmp_stmt_fetch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/observer/mysql/obmp_stmt_fetch.cpp b/src/observer/mysql/obmp_stmt_fetch.cpp index 58a14b2d9..30c297016 100644 --- a/src/observer/mysql/obmp_stmt_fetch.cpp +++ b/src/observer/mysql/obmp_stmt_fetch.cpp @@ -507,7 +507,7 @@ int ObMPStmtFetch::response_result(pl::ObPLCursorInfo &cursor, if (OB_ITER_END == ret || OB_READ_NOTHING == ret) { ret = OB_SUCCESS; // need_fetch 为 true 并且 得到了 OB_ITER_END 错误码,说明正常找到了最后一行,要设置last_row - if (need_fetch) { + if (need_fetch || !cursor.is_scrollable()) { last_row = true; } }