diff --git a/src/common/backend/parser/analyze.cpp b/src/common/backend/parser/analyze.cpp index a444c2236..a2a5b52c4 100644 --- a/src/common/backend/parser/analyze.cpp +++ b/src/common/backend/parser/analyze.cpp @@ -4429,9 +4429,9 @@ static Query* transformDeclareCursorStmt(ParseState* pstate, DeclareCursorStmt* ERROR, (errcode(ERRCODE_INVALID_CURSOR_DEFINITION), errmsg("cannot specify both SCROLL and NO SCROLL"))); } - /*除WITH HOLD游标外,根据DeclareCursorName对使用的row type形成依赖*/ PG_TRY(); { + /* according to DeclareCursorName to form a dependency on the used ROW type */ if (!(stmt->options & CURSOR_OPT_HOLD)) { u_sess->analyze_cxt.DeclareCursorName = stmt->portalname; } diff --git a/src/common/backend/utils/mmgr/portalmem.cpp b/src/common/backend/utils/mmgr/portalmem.cpp index a21a12148..53780e8da 100755 --- a/src/common/backend/utils/mmgr/portalmem.cpp +++ b/src/common/backend/utils/mmgr/portalmem.cpp @@ -1403,7 +1403,7 @@ HoldPinnedPortals(bool is_rollback) } } -/*解除游标与row type类型的依赖关系*/ +/* Release the dependency between CURSOR and ROW type */ static void CursorRecordTypeUnbind(const char* portal_name) { ListCell* cell = NULL;