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
commit58eb1760baa67a36e71b26f9ed2ddc86a1cac03d (patch)
treec350f5e7dc4e087360f989b0c05a9903660c794a
parenta76d83a00a9151dda2d1258100421ba493d6229a (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 b7fae363fb3..e16721107d7 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>