From 83e38dbeebecbb1ee3e83812951b76a386d1b91e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cross-=E7=BD=97?= <1165977584@qq.com> Date: Mon, 26 Jul 2021 09:32:41 +0000 Subject: [PATCH] =?UTF-8?q?update=20src/gausskernel/runtime/executor/execQ?= =?UTF-8?q?ual.cpp.=20=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=AF=91=E5=91=8A?= =?UTF-8?q?=E8=AD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gausskernel/runtime/executor/execQual.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gausskernel/runtime/executor/execQual.cpp b/src/gausskernel/runtime/executor/execQual.cpp index 644bfef55..bce053da4 100644 --- a/src/gausskernel/runtime/executor/execQual.cpp +++ b/src/gausskernel/runtime/executor/execQual.cpp @@ -2743,7 +2743,7 @@ static Datum ExecEvalFunc(FuncExprState* fcache, ExprContext* econtext, bool* is if (HeapTupleIsValid(cast_tuple)) { Relation cast_rel = heap_open(CastRelationId, AccessShareLock); int castowner_Anum = Anum_pg_cast_castowner; - if (castowner_Anum <= HeapTupleHeaderGetNatts(cast_tuple->t_data, cast_rel->rd_att)) { + if (castowner_Anum <= (int)HeapTupleHeaderGetNatts(cast_tuple->t_data, cast_rel->rd_att)) { bool isnull = true; Datum datum = fastgetattr(cast_tuple, Anum_pg_cast_castowner, cast_rel->rd_att, &isnull); if (!isnull) {