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
commit663292eec56ec73e9701ae28c834eb60d7681050 (patch)
tree1f319a463e07d195363474fdb9a40f9f3cb4c450
parentd9f488dc76dde5ed30a3c02d17dbbbad8f3ed0b6 (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 c91554821f4..bdd6345d73f 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>