mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-23 14:30:40 +02:00
doc: improve description of subscripting of arrays
It wasn't clear the non-integers are cast to integers for subscripting, rather than throwing an error. Reported-by: sean@materialize.io Discussion: https://postgr.es/m/159538675800.624.7728794628229799531@wrigleys.postgresql.org Backpatch-through: 9.5
This commit is contained in:
parent
104a7dad36
commit
e8e15385a1
@ -1383,7 +1383,7 @@ CREATE FUNCTION dept(text) RETURNS dept
|
|||||||
</synopsis>
|
</synopsis>
|
||||||
(Here, the brackets <literal>[ ]</literal> are meant to appear literally.)
|
(Here, the brackets <literal>[ ]</literal> are meant to appear literally.)
|
||||||
Each <replaceable>subscript</replaceable> is itself an expression,
|
Each <replaceable>subscript</replaceable> is itself an expression,
|
||||||
which must yield an integer value.
|
which will be rounded to the nearest integer value.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
|
Loading…
Reference in New Issue
Block a user