diff options
author | Michael Paquier | 2022-07-11 01:56:17 +0000 |
---|---|---|
committer | Michael Paquier | 2022-07-11 01:56:17 +0000 |
commit | 1cd182163061f0c8619eaf79dc077ef78a81a13b (patch) | |
tree | dcf1206ee0bde284591abd1cd5f976b0165c10db | |
parent | 92d70b77ebb45ec43c163d7ebfe7a3c613c24621 (diff) |
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/[email protected]
Backpatch-through: 14
-rw-r--r-- | doc/src/sgml/json.sgml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/sgml/json.sgml b/doc/src/sgml/json.sgml index 78125bc859..4182d691d6 100644 --- a/doc/src/sgml/json.sgml +++ b/doc/src/sgml/json.sgml @@ -701,10 +701,10 @@ UPDATE table_name SET jsonb_field[2] = '2'; assigned value can be placed. <programlisting> --- 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'; </programlisting> |