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 | dd00de928c3fe59f48510f6d02e5e9b8d72c8ae5 (patch) | |
tree | 10be96092904da2e86b34e94ebff0520192324e9 | |
parent | 4d93773798d68915b3b7d870bdceae9869b62f03 (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: 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 62b672973e7..ddad3726426 100644 --- a/doc/src/sgml/syntax.sgml +++ b/doc/src/sgml/syntax.sgml @@ -1383,7 +1383,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> |