Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 463b808

Browse files
committed
Doc: correct nitpicky mistakes in array_position/array_positions examples.
Daniel Gustafsson and Erik Rijkers, per report from nick@cleaton Discussion: https://postgr.es/m/159275646273.679.16940709892308114570@wrigleys.postgresql.org
1 parent a82ba06 commit 463b808

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

doc/src/sgml/array.sgml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -669,14 +669,16 @@ SELECT * FROM sal_emp WHERE pay_by_quarter && ARRAY[10000];
669669

670670
<programlisting>
671671
SELECT array_position(ARRAY['sun','mon','tue','wed','thu','fri','sat'], 'mon');
672-
array_positions
673-
-----------------
674-
2
672+
array_position
673+
----------------
674+
2
675+
(1 row)
675676

676677
SELECT array_positions(ARRAY[1, 4, 3, 1, 3, 4, 2, 1], 1);
677678
array_positions
678679
-----------------
679680
{1,4,8}
681+
(1 row)
680682
</programlisting>
681683
</para>
682684

0 commit comments

Comments
 (0)