postgres.git / summary / log / commit / refs
commit f9e4961b7d599ff42accf324a3c080c5095785c9
Author: Peter Eisentraut <peter_e@gmx.net>
Date: Thu Jan 06 21:31:20 2011 +0000
First released in: 9.1.0
Improve array_upper example
The previous example didn't make it clear whether array_upper returned
the last element or the index of the last element.
doc/src/sgml/func.sgml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index d1777759e65..9ad4ad8d9e5 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -10361,7 +10361,7 @@ SELECT NULLIF(value, '(none)') ...
</entry>
<entry><type>int</type></entry>
<entry>returns upper bound of the requested array dimension</entry>
- <entry><literal>array_upper(ARRAY[1,2,3,4], 1)</literal></entry>
+ <entry><literal>array_upper(ARRAY[1,8,3,7], 1)</literal></entry>
<entry><literal>4</literal></entry>
</row>
<row>
[parent: 6c596c29a366]