summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2020-08-31 13:49:17 -0400
committerBruce Momjian <bruce@momjian.us>2020-08-31 13:49:17 -0400
commite8e15385a12d3f733e67fdad41f276633ab57fd3 (patch)
tree8e9421994be29c8a1b85e1e522dcbfd1168d4ee5
parent104a7dad363d9c3cff89c068ceadf2f1e5a9c8b9 (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.sgml2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/sgml/syntax.sgml b/doc/src/sgml/syntax.sgml
index 86869bdf8c7..f23bec8b9dc 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>