Skip to content

Commit 23a49aa

Browse files
committed
Update notes on 0-based index
1 parent d0b4a10 commit 23a49aa

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

doc/api.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11239,15 +11239,13 @@ OUT parameters of PL/SQL INDEX BY associative array types with integer
1123911239
keys. This Oracle type was formerly called PL/SQL tables or index-by
1124011240
tables.
1124111241
11242-
While you could bind associative arrays via named types as shown in
11243-
previous examples, it is generally more efficient to use the method
11244-
shown below.
11245-
11246-
Note that if you bind associative arrays via named types for BIND_IN,
11247-
then the resulting arrays in PL/SQL will start from index 0, which
11248-
affects FORALL usage. The method shown below results in indexes
11249-
starting from 1. (Using named type binding for nested tables and
11250-
VARRAYs does result in indexes starting from 1).
11242+
While you could bind associative arrays via named types as shown in previous
11243+
examples, it is more efficient to use the method shown below which uses the
11244+
type of each element, not the name of the associative array type. Note that if
11245+
you use named types for BIND_IN, then the resulting arrays in PL/SQL will start
11246+
from index 0. The method shown below results in indexes starting from 1.
11247+
(Using named type binding for nested tables and VARRAYs results in indexes
11248+
starting from 1).
1125111249
1125211250
Given this table and PL/SQL package:
1125311251

0 commit comments

Comments
 (0)