Improve array_upper example
authorPeter Eisentraut
Thu, 6 Jan 2011 21:31:20 +0000 (23:31 +0200)
committerPeter Eisentraut
Thu, 6 Jan 2011 22:12:20 +0000 (00:12 +0200)
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

index d1777759e6508a35a9dfc450af53e3057b7b81b6..9ad4ad8d9e52632b201a21089d224c67c39762c9 100644 (file)
@@ -10361,7 +10361,7 @@ SELECT NULLIF(value, '(none)') ...
         
         int
         returns upper bound of the requested array dimension
-        array_upper(ARRAY[1,2,3,4], 1)
+        array_upper(ARRAY[1,8,3,7], 1)
         4