You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
builtins: change json_build_objects/array() to accept types.Any
Previously, json_build_objects() and json_build_array() (and their
binary variants) required that all arguments have the same type. This
patch removes that requirement so that arguments can be of any type.
Epic: none
Release note (sql change): json_build_objects(), jsonb_build_objects(),
json_build_array(), jsonb_build_array() no longer require that all
arguments have the same type.
Copy file name to clipboardExpand all lines: docs/generated/sql/functions.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1180,9 +1180,9 @@ available replica will error.</p>
1180
1180
</span></td><td>Immutable</td></tr>
1181
1181
<tr><td><aname="json_array_length"></a><code>json_array_length(json: jsonb) → <ahref="int.html">int</a></code></td><td><spanclass="funcdesc"><p>Returns the number of elements in the outermost JSON or JSONB array.</p>
1182
1182
</span></td><td>Immutable</td></tr>
1183
-
<tr><td><aname="json_build_array"></a><code>json_build_array(anyelement...) → jsonb</code></td><td><spanclass="funcdesc"><p>Builds a possibly-heterogeneously-typed JSON or JSONB array out of a variadic argument list.</p>
1183
+
<tr><td><aname="json_build_array"></a><code>json_build_array(any...) → jsonb</code></td><td><spanclass="funcdesc"><p>Builds a possibly-heterogeneously-typed JSON or JSONB array out of a variadic argument list.</p>
1184
1184
</span></td><td>Stable</td></tr>
1185
-
<tr><td><aname="json_build_object"></a><code>json_build_object(anyelement...) → jsonb</code></td><td><spanclass="funcdesc"><p>Builds a JSON object out of a variadic argument list.</p>
1185
+
<tr><td><aname="json_build_object"></a><code>json_build_object(any...) → jsonb</code></td><td><spanclass="funcdesc"><p>Builds a JSON object out of a variadic argument list.</p>
1186
1186
</span></td><td>Stable</td></tr>
1187
1187
<tr><td><aname="json_each"></a><code>json_each(input: jsonb) → tuple{string AS key, jsonb AS value}</code></td><td><spanclass="funcdesc"><p>Expands the outermost JSON or JSONB object into a set of key/value pairs.</p>
1188
1188
</span></td><td>Immutable</td></tr>
@@ -1218,9 +1218,9 @@ available replica will error.</p>
1218
1218
</span></td><td>Immutable</td></tr>
1219
1219
<tr><td><aname="jsonb_array_length"></a><code>jsonb_array_length(json: jsonb) → <ahref="int.html">int</a></code></td><td><spanclass="funcdesc"><p>Returns the number of elements in the outermost JSON or JSONB array.</p>
1220
1220
</span></td><td>Immutable</td></tr>
1221
-
<tr><td><aname="jsonb_build_array"></a><code>jsonb_build_array(anyelement...) → jsonb</code></td><td><spanclass="funcdesc"><p>Builds a possibly-heterogeneously-typed JSON or JSONB array out of a variadic argument list.</p>
1221
+
<tr><td><aname="jsonb_build_array"></a><code>jsonb_build_array(any...) → jsonb</code></td><td><spanclass="funcdesc"><p>Builds a possibly-heterogeneously-typed JSON or JSONB array out of a variadic argument list.</p>
1222
1222
</span></td><td>Stable</td></tr>
1223
-
<tr><td><aname="jsonb_build_object"></a><code>jsonb_build_object(anyelement...) → jsonb</code></td><td><spanclass="funcdesc"><p>Builds a JSON object out of a variadic argument list.</p>
1223
+
<tr><td><aname="jsonb_build_object"></a><code>jsonb_build_object(any...) → jsonb</code></td><td><spanclass="funcdesc"><p>Builds a JSON object out of a variadic argument list.</p>
1224
1224
</span></td><td>Stable</td></tr>
1225
1225
<tr><td><aname="jsonb_each"></a><code>jsonb_each(input: jsonb) → tuple{string AS key, jsonb AS value}</code></td><td><spanclass="funcdesc"><p>Expands the outermost JSON or JSONB object into a set of key/value pairs.</p>
0 commit comments