projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f669ba7
)
Fix incorrect assertion on number of array dimensions.
author
Heikki Linnakangas
<
[email protected]
>
Thu, 1 Oct 2020 08:48:48 +0000
(11:48 +0300)
committer
Heikki Linnakangas
<
[email protected]
>
Thu, 1 Oct 2020 08:50:38 +0000
(11:50 +0300)
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
src/pl/plpython/plpy_typeio.c
patch
|
blob
|
blame
|
history
diff --git
a/src/pl/plpython/plpy_typeio.c
b/src/pl/plpython/plpy_typeio.c
index 371e534fd2252d2a2829207c31265c5b8ef770d0..47785735c304e01f96e3600d6f79df35ee53e4ca 100644
(file)
--- a/
src/pl/plpython/plpy_typeio.c
+++ b/
src/pl/plpython/plpy_typeio.c
@@
-683,7
+683,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