doc: Fix two queries related to jsonb functions
authorMichael Paquier
Sat, 3 Sep 2022 11:57:16 +0000 (20:57 +0900)
committerMichael Paquier
Sat, 3 Sep 2022 11:57:16 +0000 (20:57 +0900)
These have been updated by the revert done in 2f2b18b, but the
pre-revert state was correct.  Note that the result was incorrectly
formatted in the first case.

Author: Erik Rijkers
Discussion: https://postgr.es/m/13777e96-24b6-396b-cb16-8ad01b6ac130@xs4all.nl
Backpatch-through: 13

doc/src/sgml/func.sgml

index ee515cec8f35213b2d28771a1c49d0beb60b1b76..67eb38063260d3945fa540d2db8fbcb4ee2d3220 100644 (file)
@@ -16294,7 +16294,7 @@ table2-mapping
        
        
         jsonb_set_lax('[{"f1":1,"f2":null},2,null,3]', '{0,f1}', null)
-        [{"f1":null,"f2":null},2,null,3]
+        [{"f1": null, "f2": null}, 2, null, 3]
        
        
         jsonb_set_lax('[{"f1":99,"f2":null},2]', '{0,f3}', null, true, 'return_target')
@@ -16533,7 +16533,7 @@ table2-mapping
         comparisons.
        
        
-        jsonb_path_exists_tz('["2015-08-01 12:00:00 -05"]', '$[*] ? (@.datetime() < "2015-08-02".datetime())')
+        jsonb_path_exists_tz('["2015-08-01 12:00:00-05"]', '$[*] ? (@.datetime() < "2015-08-02".datetime())')
         t