]> granicus.if.org Git - postgresql/commitdiff
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:14:14 +0000 (21:14 -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 817b973546a0d70a2880fac9747fdca717e9a3d5..0b12420aead07616322dd53e9524206dfa2dfa4f 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>