diff options
author | Bruce Momjian <bruce@momjian.us> | 2020-08-31 13:49:17 -0400 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2020-08-31 13:49:17 -0400 |
commit | 8006ac1c5117a56fcd138d663a3fe3709c8f9988 (patch) | |
tree | 7cd586818dbcbaa244c22af5270da7283cd8c6a5 | |
parent | 64fd65008c62ec011ba2d0673ca09849ae2b07c8 (diff) | |
download | postgresql-8006ac1c5117a56fcd138d663a3fe3709c8f9988.tar.gz postgresql-8006ac1c5117a56fcd138d663a3fe3709c8f9988.zip |
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
-rw-r--r-- | doc/src/sgml/syntax.sgml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/sgml/syntax.sgml b/doc/src/sgml/syntax.sgml index 0ee303cb87f..b0ae5d2e127 100644 --- a/doc/src/sgml/syntax.sgml +++ b/doc/src/sgml/syntax.sgml @@ -1359,7 +1359,7 @@ CREATE FUNCTION dept(text) RETURNS dept </synopsis> (Here, the brackets <literal>[ ]</literal> are meant to appear literally.) 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> |