doc: Fix inconsistent quotes in some jsonb fields
authorMichael Paquier
Mon, 11 Jul 2022 01:56:17 +0000 (10:56 +0900)
committerMichael Paquier
Mon, 11 Jul 2022 01:56:17 +0000 (10:56 +0900)
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

doc/src/sgml/json.sgml

index 78125bc8597b9d98dd5f46d7f39cb78247889484..4182d691d64014c3ca1c94fe6dd219fd53d98d57 100644 (file)
@@ -701,10 +701,10 @@ UPDATE table_name SET jsonb_field[2] = '2';
    assigned value can be placed.
 
 
--- Where jsonb_field was {}, it is now {'a': [{'b': 1}]}
+-- Where jsonb_field was {}, it is now {"a": [{"b": 1}]}
 UPDATE table_name SET jsonb_field['a'][0]['b'] = '1';
 
--- Where jsonb_field was [], it is now [null, {'a': 1}]
+-- Where jsonb_field was [], it is now [null, {"a": 1}]
 UPDATE table_name SET jsonb_field[1]['a'] = '1';