mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Teach jsonpath string() to unwrap in lax mode
This was an ommission in commit 66ea94e
, and brings it into compliance
with both other methods and the standard.
Per complaint from David Wheeler.
Author: David Wheeler, Jeevan Chalke
Reviewed-by: Chapman Flack
Discussion: https://postgr.es/m/A64AE04F-4410-42B7-A141-7A7349260F4D@justatheory.com
This commit is contained in:
@ -17792,7 +17792,10 @@ ERROR: jsonpath member accessor can only be applied to an object
|
||||
methods available in <type>jsonpath</type>. Note that while the unary
|
||||
operators and methods can be applied to multiple values resulting from a
|
||||
preceding path step, the binary operators (addition etc.) can only be
|
||||
applied to single values.
|
||||
applied to single values. In lax mode, methods applied to an array will be
|
||||
executed for each value in the array. The exceptions are
|
||||
<literal>.type()</literal> and <literal>.size()</literal>, which apply to
|
||||
the array itself.
|
||||
</para>
|
||||
|
||||
<table id="functions-sqljson-op-table">
|
||||
|
Reference in New Issue
Block a user