More regression test cases for json/jsonb extraction operators.
Tom Lane <tgl@sss.pgh.pa.us>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/test/regress/expected/json_1.out | modified | +60 −2 |
| src/test/regress/expected/jsonb_1.out | modified | +68 −2 |
| src/test/regress/expected/jsonb.out | modified | +68 −2 |
| src/test/regress/expected/json.out | modified | +60 −2 |
| src/test/regress/sql/jsonb.sql | modified | +18 −2 |
| src/test/regress/sql/json.sql | modified | +18 −2 |