From afa648b0d44bd97dc697d072aad5257432a40e54 Mon Sep 17 00:00:00 2001 From: WangXiuqiang Date: Wed, 13 Sep 2023 10:33:39 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3sql=5Fmode=5Ffull=5Fgroup?= =?UTF-8?q?=E5=85=B3=E9=97=AD=E4=B8=8B=EF=BC=8C=E5=AF=B9=E6=B2=A1=E5=80=BC?= =?UTF-8?q?=E7=9A=84=E5=88=97=E4=BD=BF=E7=94=A8=E8=81=9A=E5=90=88=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E6=8A=A5=E9=94=99=EF=BC=8C=E4=B8=8EMySQL=E8=BE=93?= =?UTF-8?q?=E5=87=BA=E4=B8=8D=E4=B8=80=E8=87=B4=E3=80=90zyzx=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gausskernel/storage/access/common/heaptuple.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gausskernel/storage/access/common/heaptuple.cpp b/src/gausskernel/storage/access/common/heaptuple.cpp index 33bc78fc22..dbe468d825 100644 --- a/src/gausskernel/storage/access/common/heaptuple.cpp +++ b/src/gausskernel/storage/access/common/heaptuple.cpp @@ -1760,9 +1760,12 @@ void heap_slot_getsomeattrs(TupleTableSlot *slot, int attnum) } #endif - int attno = GetAttrNumber(slot, attnum); + int attno = attnum; + if (slot->tts_tuple) { + attno = GetAttrNumber(slot, attnum); - slot_deform_tuple(slot, attno); + slot_deform_tuple(slot, attno); + } /* If tuple doesn't have all the atts indicated by tupleDesc, read the rest as null */ if (unlikely(attno < attnum)) { -- Gitee