Skip to content

Commit b2b6c1b

Browse files
committed
doc: Fix inconsistent quotes in some jsonb fields
Single quotes are not allowed in json internals, double quotes are. Reported-by: Eric Mutta Discussion: https://postgr.es/m/165715362165.665.3875113264927503997@wrigleys.postgresql.org Backpatch-through: 14
1 parent 31b485f commit b2b6c1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/src/sgml/json.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -701,10 +701,10 @@ UPDATE table_name SET jsonb_field[2] = '2';
701701
assigned value can be placed.
702702

703703
<programlisting>
704-
-- Where jsonb_field was {}, it is now {'a': [{'b': 1}]}
704+
-- Where jsonb_field was {}, it is now {"a": [{"b": 1}]}
705705
UPDATE table_name SET jsonb_field['a'][0]['b'] = '1';
706706

707-
-- Where jsonb_field was [], it is now [null, {'a': 1}]
707+
-- Where jsonb_field was [], it is now [null, {"a": 1}]
708708
UPDATE table_name SET jsonb_field[1]['a'] = '1';
709709
</programlisting>
710710

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy