mirror of
https://github.com/postgres/postgres.git
synced 2026-04-20 22:00:13 -04:00
Fix recently-introduced crash in array_contain_compare().
Silly oversight in commit 1dc5ebc907:
when array2 is an expanded array, it might have array2->xpn.dnulls equal
to NULL, indicating the array is known null-free. The code wasn't
expecting that, because it formerly always used deconstruct_array() which
always delivers a nulls array.
Per bug #13334 from Regina Obe.
This commit is contained in:
parent
5302760a50
commit
49ad32d5d9
1 changed files with 1 additions and 1 deletions
|
|
@ -4110,7 +4110,7 @@ array_contain_compare(AnyArrayType *array1, AnyArrayType *array2, Oid collation,
|
|||
for (j = 0; j < nelems2; j++)
|
||||
{
|
||||
Datum elt2 = values2[j];
|
||||
bool isnull2 = nulls2[j];
|
||||
bool isnull2 = nulls2 ? nulls2[j] : false;
|
||||
bool oprresult;
|
||||
|
||||
if (isnull2)
|
||||
|
|
|
|||
Loading…
Reference in a new issue