Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Release note compatibility item
authorAndrew Dunstan <andrew@dunslane.net>
Sat, 18 Jul 2015 01:08:03 +0000 (21:08 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Sat, 18 Jul 2015 01:08:03 +0000 (21:08 -0400)
Note that json and jsonb extraction operators no longer consider a
negative subscript to be invalid.

doc/src/sgml/release-9.5.sgml

index a1010b29b87cea4301221ae200c0b63efb246d88..dff1ba9ae0bbff5117a2285e52b5b7739cbbfd5f 100644 (file)
      </para>
     </listitem>
 
+    <listitem>
+     <para>
+      Allow <type>json</> and <type>jsonb</> extraction operators to
+      accept negative subscripts, which count from the end of JSON
+      arrays.  Historically, these operators yielded <literal>NULL</>
+      in the event of a negative subscript, because negative
+      subscripts were considered invalid.  (Peter Geoghegan, Andrew
+      Dunstan)
+     </para>
+    </listitem>
+
    </itemizedlist>
 
   </sect2>