Skip to content

Commit e176187

Browse files
committed
Fix incorrect assertion on number of array dimensions.
This has been wrong ever since the support for multi-dimensional arrays as PL/python function arguments and return values was introduced in commit 94aceed. Backpatch-through: 10 Discussion: https://www.postgresql.org/message-id/61647b8e-961c-0362-d5d3-c8a18f4a7ec6%40iki.fi
1 parent 265ea56 commit e176187

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pl/plpython/plpy_typeio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ PLyList_FromArray(PLyDatumToOb *arg, Datum d)
679679
/* Array dimensions and left bounds */
680680
ndim = ARR_NDIM(array);
681681
dims = ARR_DIMS(array);
682-
Assert(ndim < MAXDIM);
682+
Assert(ndim <= MAXDIM);
683683

684684
/*
685685
* We iterate the SQL array in the physical order it's stored in the

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy