]> granicus.if.org Git - postgresql/commit
More regression test cases for json/jsonb extraction operators.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 20 Aug 2014 23:05:05 +0000 (19:05 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 20 Aug 2014 23:05:05 +0000 (19:05 -0400)
commitfa069822f5a02bbbe46bada0b6e420a89c5f7484
tree2b761f72d40c7f02b9d7cb9b020fdaad16426ea0
parent9bac66020db75871463bafdb394568bf946e8991
More regression test cases for json/jsonb extraction operators.

Cover some cases I omitted before, such as null and empty-string
elements in the path array.  This exposes another inconsistency:
json_extract_path complains about empty path elements but
jsonb_extract_path does not.
src/test/regress/expected/json.out
src/test/regress/expected/json_1.out
src/test/regress/expected/jsonb.out
src/test/regress/expected/jsonb_1.out
src/test/regress/sql/json.sql
src/test/regress/sql/jsonb.sql