From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: More regression test cases for json/jsonb extraction operators. |
Date: | 2014-08-20 23:05:12 |
Message-ID: | E1XKEwK-0002Kc-DC@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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.
Branch
------
REL9_4_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/9243417801be3f1cfaa3a3c33d5a003f382bd7a4
Modified Files
--------------
src/test/regress/expected/json.out | 62 ++++++++++++++++++++++++++++-
src/test/regress/expected/json_1.out | 62 ++++++++++++++++++++++++++++-
src/test/regress/expected/jsonb.out | 70 ++++++++++++++++++++++++++++++++-
src/test/regress/expected/jsonb_1.out | 70 ++++++++++++++++++++++++++++++++-
src/test/regress/sql/json.sql | 20 +++++++++-
src/test/regress/sql/jsonb.sql | 20 +++++++++-
6 files changed, 292 insertions(+), 12 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2014-08-20 23:33:15 | Re: pgsql: Add missing index terms for replication commands in the document |
Previous Message | Tom Lane | 2014-08-20 20:49:08 | pgsql: Fix core dump in jsonb #> operator, and add regression test case |