fix wrong type convertion (#7116)

partitionMethod and replicationModel are both type char, there seems
meaningless to convert them to type Oid implicitly.
pull/7126/head
zhjwpku 2023-08-17 19:53:43 +08:00 committed by GitHub
parent a5ce601c07
commit b10320be6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -4987,8 +4987,8 @@ CitusTableTypeIdList(CitusTableType citusTableType)
Datum replicationModelDatum = datumArray[Anum_pg_dist_partition_repmodel - 1];
Datum colocationIdDatum = datumArray[Anum_pg_dist_partition_colocationid - 1];
Oid partitionMethod = DatumGetChar(partMethodDatum);
Oid replicationModel = DatumGetChar(replicationModelDatum);
char partitionMethod = DatumGetChar(partMethodDatum);
char replicationModel = DatumGetChar(replicationModelDatum);
uint32 colocationId = DatumGetUInt32(colocationIdDatum);
if (IsCitusTableTypeInternal(partitionMethod, replicationModel, colocationId,