- Notifications
You must be signed in to change notification settings - Fork5
Commite7e3ac2
committed
Fix the fastpath rule for jsonb_concat with an empty operand.
To prevent perverse results, we now only return the other operand ifit's not scalar, and if both operands are of the same kind (array orobject).Original bug complaint and patch from Oskari Saarenmaa, extended by meto cover the cases of different kinds of jsonb.Backpatch to 9.5 where jsonb_concat was introduced.1 parentc193b8c commite7e3ac2
File tree
4 files changed
+90
-5
lines changed- src
- backend/utils/adt
- test/regress
- expected
- sql
4 files changed
+90
-5
lines changedLines changed: 11 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3359 | 3359 |
| |
3360 | 3360 |
| |
3361 | 3361 |
| |
3362 |
| - | |
| 3362 | + | |
| 3363 | + | |
| 3364 | + | |
| 3365 | + | |
3363 | 3366 |
| |
3364 |
| - | |
3365 |
| - | |
3366 |
| - | |
3367 |
| - | |
| 3367 | + | |
| 3368 | + | |
| 3369 | + | |
| 3370 | + | |
| 3371 | + | |
| 3372 | + | |
| 3373 | + | |
3368 | 3374 |
| |
3369 | 3375 |
| |
3370 | 3376 |
| |
|
Lines changed: 36 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2912 | 2912 |
| |
2913 | 2913 |
| |
2914 | 2914 |
| |
| 2915 | + | |
| 2916 | + | |
| 2917 | + | |
| 2918 | + | |
| 2919 | + | |
| 2920 | + | |
| 2921 | + | |
| 2922 | + | |
| 2923 | + | |
| 2924 | + | |
| 2925 | + | |
| 2926 | + | |
| 2927 | + | |
| 2928 | + | |
| 2929 | + | |
| 2930 | + | |
| 2931 | + | |
| 2932 | + | |
| 2933 | + | |
| 2934 | + | |
| 2935 | + | |
| 2936 | + | |
| 2937 | + | |
| 2938 | + | |
| 2939 | + | |
| 2940 | + | |
| 2941 | + | |
| 2942 | + | |
| 2943 | + | |
| 2944 | + | |
| 2945 | + | |
| 2946 | + | |
| 2947 | + | |
| 2948 | + | |
| 2949 | + | |
| 2950 | + | |
2915 | 2951 |
| |
2916 | 2952 |
| |
2917 | 2953 |
| |
|
Lines changed: 36 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2912 | 2912 |
| |
2913 | 2913 |
| |
2914 | 2914 |
| |
| 2915 | + | |
| 2916 | + | |
| 2917 | + | |
| 2918 | + | |
| 2919 | + | |
| 2920 | + | |
| 2921 | + | |
| 2922 | + | |
| 2923 | + | |
| 2924 | + | |
| 2925 | + | |
| 2926 | + | |
| 2927 | + | |
| 2928 | + | |
| 2929 | + | |
| 2930 | + | |
| 2931 | + | |
| 2932 | + | |
| 2933 | + | |
| 2934 | + | |
| 2935 | + | |
| 2936 | + | |
| 2937 | + | |
| 2938 | + | |
| 2939 | + | |
| 2940 | + | |
| 2941 | + | |
| 2942 | + | |
| 2943 | + | |
| 2944 | + | |
| 2945 | + | |
| 2946 | + | |
| 2947 | + | |
| 2948 | + | |
| 2949 | + | |
| 2950 | + | |
2915 | 2951 |
| |
2916 | 2952 |
| |
2917 | 2953 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
718 | 718 |
| |
719 | 719 |
| |
720 | 720 |
| |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
721 | 728 |
| |
722 | 729 |
| |
723 | 730 |
| |
|
0 commit comments
Comments
(0)