!6211 Assert中判断条件语句修复

Merge pull request !6211 from 王明轩/AssertManage
This commit is contained in:
opengauss_bot
2024-10-15 08:08:47 +00:00
committed by Gitee
3 changed files with 3 additions and 3 deletions

View File

@ -3074,7 +3074,7 @@ TupleTableSlot *EvalPlanQualUHeap(EState *estate, EPQState *epqstate, Relation r
return NULL;
}
Assert(copyTuple->tupTableType = UHEAP_TUPLE);
Assert(copyTuple->tupTableType == UHEAP_TUPLE);
*tid = copyTuple->ctid;

View File

@ -4303,7 +4303,7 @@ ModifyTableState* ExecInitModifyTable(ModifyTable* node, EState* estate, int efl
TupleDesc tupDesc;
/* insert may only have one plan, inheritance is not expanded */
Assert(nplans = 1);
Assert(nplans == 1);
/* already exists if created by RETURNING processing above */
if (mt_state->ps.ps_ExprContext == NULL) {

View File

@ -534,7 +534,7 @@ Snapshot SnapBuildInitialSnapshot(SnapBuild *builder)
TransactionId tempXid;
Assert(!u_sess->utils_cxt.FirstSnapshotSet);
Assert(u_sess->utils_cxt.XactIsoLevel = XACT_REPEATABLE_READ);
Assert(u_sess->utils_cxt.XactIsoLevel == XACT_REPEATABLE_READ);
if (builder->state != SNAPBUILD_CONSISTENT)
ereport(ERROR, (errmodule(MOD_LOGICAL_DECODE), errcode(ERRCODE_FEATURE_NOT_SUPPORTED),