diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2020-10-01 11:48:48 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2020-10-01 11:48:48 +0300 |
commit | e1761871c096514ef08a211bf4a9b557753383dc (patch) | |
tree | 1029c894e542e8d04201a8725a8ce3c2030b1e1b /src | |
parent | 265ea567852a692e644fe6b207def4a2fc812adb (diff) | |
download | postgresql-e1761871c096514ef08a211bf4a9b557753383dc.tar.gz postgresql-e1761871c096514ef08a211bf4a9b557753383dc.zip |
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 94aceed317.
Backpatch-through: 10
Discussion: https://www.postgresql.org/message-id/61647b8e-961c-0362-d5d3-c8a18f4a7ec6%40iki.fi
Diffstat (limited to 'src')
-rw-r--r-- | src/pl/plpython/plpy_typeio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pl/plpython/plpy_typeio.c b/src/pl/plpython/plpy_typeio.c index 7c844c2b8a1..9e4e9035f78 100644 --- a/src/pl/plpython/plpy_typeio.c +++ b/src/pl/plpython/plpy_typeio.c @@ -679,7 +679,7 @@ PLyList_FromArray(PLyDatumToOb *arg, Datum d) /* Array dimensions and left bounds */ ndim = ARR_NDIM(array); dims = ARR_DIMS(array); - Assert(ndim < MAXDIM); + Assert(ndim <= MAXDIM); /* * We iterate the SQL array in the physical order it's stored in the |