Commit 68cff23
committed
Make edge-case behavior of jsonb_populate_record match json_populate_record
json_populate_record throws an error if asked to convert a JSON scalar
or array into a composite type. jsonb_populate_record was returning
a record full of NULL fields instead. It seems better to make it
throw an error for this case as well.
Nikita Glukhov
Discussion: https://postgr.es/m/fbd1d566-bba0-a3de-d6d0-d3b1d7c24ff2@postgrespro.ru1 parent e45c5be commit 68cff23
File tree
2 files changed
+19
-16
lines changed- src
- backend/utils/adt
- test/regress/expected
2 files changed
+19
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2682 | 2682 | | |
2683 | 2683 | | |
2684 | 2684 | | |
| 2685 | + | |
2685 | 2686 | | |
| 2687 | + | |
2686 | 2688 | | |
2687 | | - | |
| 2689 | + | |
| 2690 | + | |
| 2691 | + | |
| 2692 | + | |
| 2693 | + | |
| 2694 | + | |
| 2695 | + | |
| 2696 | + | |
| 2697 | + | |
| 2698 | + | |
| 2699 | + | |
| 2700 | + | |
| 2701 | + | |
| 2702 | + | |
2688 | 2703 | | |
2689 | 2704 | | |
2690 | 2705 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2276 | 2276 | | |
2277 | 2277 | | |
2278 | 2278 | | |
2279 | | - | |
2280 | | - | |
2281 | | - | |
2282 | | - | |
2283 | | - | |
| 2279 | + | |
2284 | 2280 | | |
2285 | | - | |
2286 | | - | |
2287 | | - | |
2288 | | - | |
2289 | | - | |
| 2281 | + | |
2290 | 2282 | | |
2291 | 2283 | | |
2292 | 2284 | | |
| |||
2303 | 2295 | | |
2304 | 2296 | | |
2305 | 2297 | | |
2306 | | - | |
2307 | | - | |
2308 | | - | |
2309 | | - | |
2310 | | - | |
| 2298 | + | |
2311 | 2299 | | |
2312 | 2300 | | |
2313 | 2301 | | |
| |||
0 commit comments