Re: Typo in examples in "8.14.5. jsonb Subscripting"

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: eric(dot)mutta(at)gmail(dot)com, pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: Typo in examples in "8.14.5. jsonb Subscripting"
Date: 2022-07-11 01:45:45
Message-ID: YsuAyTJQpOAx2b3W@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

On Thu, Jul 07, 2022 at 12:27:01AM +0000, PG Doc comments form wrote:
> Towards the end of the section, the code examples given have comments where
> the JSON is using single quotes instead of double quotes around the
> properties. For example this:
>
> -- Where jsonb_field was {}, it is now {'a': [{'b': 1}]}
>
> ...should use double quotes around the "a" and "b" properties and read as
> follows:
>
> -- Where jsonb_field was {}, it is now {"a": [{"b": 1}]}

Indeed. I can see only the two places you are pointing at as being
incorrect. Will fix.
--
Michael

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message PG Doc comments form 2022-07-12 00:12:14 Docs for string_to_array missing for Postgres 14
Previous Message Adrian Wiik 2022-07-10 04:58:01 Re: Section I - 2.9: Use SELECT to confirm set of rows before DELETE