Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 71b98d6

Browse files
author
Nikita Glukhov
committed
Fix docs for JSON(): [] => optional
1 parent a6b043d commit 71b98d6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

doc/src/sgml/func.sgml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16946,10 +16946,10 @@ $ ? (@ like_regex "^\\d+$")
1694616946

1694716947
<refsynopsisdiv>
1694816948
<synopsis>
16949-
JSON (
16950-
<parameter>expression</parameter> [ FORMAT JSON [ ENCODING UTF8 ] ]
16951-
[ { WITH | WITHOUT } UNIQUE [ KEYS ] ]
16952-
[ RETURNING <replaceable class="parameter">json_data_type</replaceable> ]
16949+
<function>JSON</function> (
16950+
<parameter>expression</parameter> <optional> FORMAT JSON <optional> ENCODING UTF8 </optional> </optional>
16951+
<optional> { WITH | WITHOUT } UNIQUE <optional> KEYS </optional> </optional>
16952+
<optional> RETURNING <replaceable class="parameter">json_data_type</replaceable> </optional>
1695316953
)
1695416954
</synopsis>
1695516955
</refsynopsisdiv>
@@ -16968,7 +16968,7 @@ JSON (
1696816968
<variablelist>
1696916969
<varlistentry>
1697016970
<term>
16971-
<literal><parameter>expression</parameter> [ FORMAT JSON [ ENCODING UTF8 ] ]</literal>
16971+
<literal><parameter>expression</parameter> <optional> FORMAT JSON <optional> ENCODING UTF8 </optional> </optional></literal>
1697216972
</term>
1697316973
<listitem>
1697416974
<para>
@@ -16985,7 +16985,7 @@ JSON (
1698516985
</varlistentry>
1698616986
<varlistentry>
1698716987
<term>
16988-
<literal>[ { WITH | WITHOUT } UNIQUE [ KEYS ] ]</literal>
16988+
<literal>{ WITH | WITHOUT } UNIQUE <optional> KEYS </optional></literal>
1698916989
</term>
1699016990
<listitem>
1699116991
<para>

0 commit comments

Comments
 (0)