From f9e4961b7d599ff42accf324a3c080c5095785c9 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 6 Jan 2011 23:31:20 +0200 Subject: [PATCH] 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 d1777759e6..9ad4ad8d9e 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -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 -- 2.40.0