纠正根据代码评审意见一处的修改错误
This commit is contained in:
@ -477,6 +477,10 @@ bool ExecComputeStoredUpdateExpr(ResultRelInfo *resultRelInfo, EState *estate, T
|
|||||||
int attnum;
|
int attnum;
|
||||||
uint32 updated_colnum_resno;
|
uint32 updated_colnum_resno;
|
||||||
Bitmapset* updatedCols = GetUpdatedColumns(node->resultRelInfo, node->ps.state);
|
Bitmapset* updatedCols = GetUpdatedColumns(node->resultRelInfo, node->ps.state);
|
||||||
|
|
||||||
|
HeapTuple oldtup = GetTupleForTrigger(estate, NULL, resultRelInfo, oldPartitionOid, bucketid, otid, LockTupleShared, NULL);
|
||||||
|
RecoredUpdateExpr(resultRelInfo, estate, cmdtype);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If no generated columns have been affected by this change, then skip
|
* If no generated columns have been affected by this change, then skip
|
||||||
* the rest.
|
* the rest.
|
||||||
@ -484,10 +488,6 @@ bool ExecComputeStoredUpdateExpr(ResultRelInfo *resultRelInfo, EState *estate, T
|
|||||||
if (resultRelInfo->ri_NumUpdatedNeeded == 0)
|
if (resultRelInfo->ri_NumUpdatedNeeded == 0)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
HeapTuple oldtup = GetTupleForTrigger(estate, NULL, resultRelInfo, oldPartitionOid, bucketid, otid, LockTupleShared, NULL);
|
|
||||||
|
|
||||||
RecoredUpdateExpr(resultRelInfo, estate, cmdtype);
|
|
||||||
|
|
||||||
/* compare update operator whether the newtuple is equal to the oldtuple,
|
/* compare update operator whether the newtuple is equal to the oldtuple,
|
||||||
* if equal, so update don't fix the default column value */
|
* if equal, so update don't fix the default column value */
|
||||||
Datum* oldvalues = (Datum*)palloc(natts * sizeof(Datum));
|
Datum* oldvalues = (Datum*)palloc(natts * sizeof(Datum));
|
||||||
|
Reference in New Issue
Block a user