projects
/
users
/
gsingh
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a82ba06
)
Doc: correct nitpicky mistakes in array_position/array_positions examples.
author
Tom Lane
<tgl@sss.pgh.pa.us>
Thu, 25 Jun 2020 17:28:30 +0000
(13:28 -0400)
committer
Tom Lane
<tgl@sss.pgh.pa.us>
Thu, 25 Jun 2020 17:28:30 +0000
(13:28 -0400)
Daniel Gustafsson and Erik Rijkers, per report from nick@cleaton
Discussion: https://postgr.es/m/
159275646273
.679.
16940709892308114570
@wrigleys.postgresql.org
doc/src/sgml/array.sgml
patch
|
blob
|
blame
|
history
diff --git
a/doc/src/sgml/array.sgml
b/doc/src/sgml/array.sgml
index a473fa8ee8bc14255c0c8fc2b2d33d4755ca3e8b..56185b9b0387dba4ed615658427c5b957d4a403b 100644
(file)
--- a/
doc/src/sgml/array.sgml
+++ b/
doc/src/sgml/array.sgml
@@
-669,14
+669,16
@@
SELECT * FROM sal_emp WHERE pay_by_quarter && ARRAY[10000];
<programlisting>
SELECT array_position(ARRAY['sun','mon','tue','wed','thu','fri','sat'], 'mon');
- array_positions
------------------
- 2
+ array_position
+----------------
+ 2
+(1 row)
SELECT array_positions(ARRAY[1, 4, 3, 1, 3, 4, 2, 1], 1);
array_positions
-----------------
{1,4,8}
+(1 row)
</programlisting>
</para>