mirror of https://github.com/citusdata/citus.git
Fix ArrayObjectCount for zero sized arrays
parent
de5174f763
commit
257406fda7
|
@ -360,6 +360,11 @@ ArrayObjectCount(ArrayType *arrayObject)
|
||||||
int32 *dimensionLengthArray = ARR_DIMS(arrayObject);
|
int32 *dimensionLengthArray = ARR_DIMS(arrayObject);
|
||||||
int32 arrayLength = 0;
|
int32 arrayLength = 0;
|
||||||
|
|
||||||
|
if (dimensionCount == 0)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* we currently allow split point arrays to have only one subarray */
|
/* we currently allow split point arrays to have only one subarray */
|
||||||
Assert(dimensionCount == 1);
|
Assert(dimensionCount == 1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue