Skip to content

Commit 202d48b

Browse files
Clarify that cursor.arrayvar() can only be used for PL/SQL associative arrays
with contiguous keys.
1 parent cc841fa commit 202d48b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc/src/api_manual/cursor.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ Cursor Object
5858
the list might be empty and the type cannot be determined automatically) or
5959
returning arrays from PL/SQL.
6060

61+
Array variables can only be used for PL/SQL associative arrays with
62+
contiguous keys. For PL/SQL associative arrays with sparsely populated keys
63+
or for varrays and nested tables, the approach shown in this
64+
`example <https://github.com/oracle/python-cx_Oracle/blob/master/
65+
samples/PLSQLCollection.py>`__ needs to be used.
66+
6167
.. note::
6268

6369
The DB API definition does not define this method.

0 commit comments

Comments
 (0)