Skip to content

Commit 254a216

Browse files
committed
doc: Fix typo in example query of SQL/JSON
Author: Erik Rijkers Discussion: https://postgr.es/m/1219476687.20432.1617452918468@webmailclassic.xs4all.nl Backpatch-through: 12
1 parent f5fc2f5 commit 254a216

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/src/sgml/json.sgml

+1-1
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ CREATE INDEX idxgintags ON api USING GIN ((jdoc -> 'tags'));
489489
SELECT jdoc->'guid', jdoc->'name' FROM api WHERE jdoc @@ '$.tags[*] == "qui"';
490490
</programlisting>
491491
<programlisting>
492-
SELECT jdoc->'guid', jdoc->'name' FROM api WHERE jdoc @@ '$.tags[*] ? (@ == "qui")';
492+
SELECT jdoc->'guid', jdoc->'name' FROM api WHERE jdoc @? '$.tags[*] ? (@ == "qui")';
493493
</programlisting>
494494
GIN index extracts statements of following form out of
495495
<literal>jsonpath</literal>: <replaceable>accessors_chain</replaceable> = <replaceable>const</replaceable>.

0 commit comments

Comments
 (0)