diff --git a/src/gausskernel/optimizer/commands/tablecmds.cpp b/src/gausskernel/optimizer/commands/tablecmds.cpp index 625705f6e633127a0cbe7b69f6f6454d92cb5cab..b3614345a346b3845249a5e9ca8457d3c98579c8 100644 --- a/src/gausskernel/optimizer/commands/tablecmds.cpp +++ b/src/gausskernel/optimizer/commands/tablecmds.cpp @@ -21438,7 +21438,7 @@ static Oid GetPartOidByATcmd(Relation rel, AlterTableCmd *cmd, const char *comma RangePartitionDefState *rangePartDef = (RangePartitionDefState*)cmd->def; switch (rel->partMap->type) { case PART_TYPE_RANGE: - case PART_AREA_INTERVAL: + case PART_TYPE_INTERVAL: rangePartDef->boundary = transformConstIntoTargetType(rel->rd_att->attrs, ((RangePartitionMap*)rel->partMap)->partitionKey, rangePartDef->boundary); @@ -28656,4 +28656,4 @@ void CheckRelAutoIncrementIndex(Oid relid, LOCKMODE lockmode) ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), (errmsg("Incorrect table definition, auto_increment column must be defined as a key")))); } -} \ No newline at end of file +}