Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3c85489

Browse files
committed
Fix incorrect assertion on number of array dimensions.
This has been wrong ever since the support for multi-dimensionalarrays as PL/python function arguments and return values wasintroduced in commit94aceed.Backpatch-through: 10Discussion:https://www.postgresql.org/message-id/61647b8e-961c-0362-d5d3-c8a18f4a7ec6%40iki.fi
1 parent4943374 commit3c85489

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)

[8]ページ先頭

©2009-2025 Movatter.jp