File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -836,17 +836,22 @@ SELECT jdoc->'guid', jdoc->'name' FROM api WHERE jdoc @> '{"tags": ["qu
836836 <para>
837837 <literal>[<replaceable>subscript</replaceable>, ...]</literal>
838838 </para>
839- <para>
840- <literal>[<replaceable>subscript</replaceable> to last]</literal>
841- </para>
842839 </entry>
843840 <entry>
844841 <para>
845- Array element accessor. The provided numeric subscripts return the
846- corresponding array elements. The first element in an array is
847- accessed with [0]. The <literal>last</literal> keyword denotes
848- the last subscript in an array and can be used to handle arrays
849- of unknown length.
842+ Array element accessor. <literal><replaceable>subscript</replaceable></literal>
843+ might be given in two forms: <literal><replaceable>expr</replaceable></literal>
844+ or <literal><replaceable>lower_expr</replaceable> to <replaceable>upper_expr</replaceable></literal>.
845+ The first form specifies single array element by its index. The second
846+ form specified array slice by the range of indexes. Zero index
847+ corresponds to the first array element.
848+ </para>
849+ <para>
850+ Expression inside subscript may consititue an integer,
851+ numeric expression or any other <literal>jsonpath</literal> expression
852+ returning single numeric value. The <literal>last</literal> keyword
853+ can be used in the expression denoting the last subscript in an array.
854+ That's helpful for handling arrays of unknown length.
850855 </para>
851856 </entry>
852857 </row>
You can’t perform that action at this time.
0 commit comments