diff options
author | Bruce Momjian | 2020-08-31 17:49:17 +0000 |
---|---|---|
committer | Bruce Momjian | 2020-08-31 17:49:17 +0000 |
commit | 06eba0fd10b1c19d578b90f6ab792834fe9a7418 (patch) | |
tree | 57025a9bb09341190c9d35619aaabbf65846adc9 | |
parent | 47c427d006267d752fee4655543ec99dabe9e61d (diff) |
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: [email protected]
Discussion: https://postgr.es/m/[email protected]
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 0ee303cb87..b0ae5d2e12 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> |