mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-29 22:49:41 +03:00 
			
		
		
		
	SQL/JSON: Update example in JSON_QUERY() documentation
Commit e6c45d85dc fixed the behavior of JSON_QUERY() when WITH
CONDITIONAL WRAPPER is used, but the documentation example wasn't
updated to reflect this change. This commit updates the example to
show the correct result.
Per off-list report from Andreas Ulbrich.
Backpatch-through: 17
			
			
This commit is contained in:
		| @@ -18883,7 +18883,7 @@ ERROR:  jsonpath array subscript is out of bounds | |||||||
|        </para> |        </para> | ||||||
|        <para> |        <para> | ||||||
|         <literal>JSON_QUERY(jsonb '[1,[2,3],null]', 'lax $[*][$off]' PASSING 1 AS off WITH CONDITIONAL WRAPPER)</literal> |         <literal>JSON_QUERY(jsonb '[1,[2,3],null]', 'lax $[*][$off]' PASSING 1 AS off WITH CONDITIONAL WRAPPER)</literal> | ||||||
|         <returnvalue>[3]</returnvalue> |         <returnvalue>3</returnvalue> | ||||||
|        </para> |        </para> | ||||||
|        <para> |        <para> | ||||||
|         <literal>JSON_QUERY(jsonb '{"a": "[1, 2]"}', 'lax $.a' OMIT QUOTES)</literal> |         <literal>JSON_QUERY(jsonb '{"a": "[1, 2]"}', 'lax $.a' OMIT QUOTES)</literal> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user