mirror of https://github.com/citusdata/citus.git
Use DatumGetBool
parent
cb2538a5f0
commit
d4036a949b
|
@ -1387,11 +1387,15 @@ BuildCitusTableCacheEntry(Oid relationId)
|
||||||
cacheEntry->replicationModel = DatumGetChar(replicationModelDatum);
|
cacheEntry->replicationModel = DatumGetChar(replicationModelDatum);
|
||||||
}
|
}
|
||||||
|
|
||||||
cacheEntry->autoConverted = datumArray[Anum_pg_dist_partition_autoconverted - 1];
|
|
||||||
if (isNullArray[Anum_pg_dist_partition_autoconverted - 1])
|
if (isNullArray[Anum_pg_dist_partition_autoconverted - 1])
|
||||||
{
|
{
|
||||||
cacheEntry->autoConverted = false;
|
cacheEntry->autoConverted = false;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
cacheEntry->autoConverted = DatumGetBool(
|
||||||
|
datumArray[Anum_pg_dist_partition_autoconverted - 1]);
|
||||||
|
}
|
||||||
|
|
||||||
heap_freetuple(distPartitionTuple);
|
heap_freetuple(distPartitionTuple);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue