forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitff5d561
committed
Remove "invalid concatenation of jsonb objects" error case.
The jsonb || jsonb operator arbitrarily rejected certain combinationsof scalar and non-scalar inputs, while being willing to concatenateother combinations. This was of course quite undocumented. Ratherthan trying to document it, let's just remove the restriction,creating a uniform rule that unless we are handling an object-to-objectconcatenation, non-array inputs are converted to one-element arrays,resulting in an array-to-array concatenation. (This does not changethe behavior for any case that didn't throw an error before.)Per complaint from Joel Jacobson. Back-patch to all supported branches.Discussion:https://postgr.es/m/163099.1608312033@sss.pgh.pa.us1 parent86b7cca commitff5d561
File tree
4 files changed
+94
-40
lines changed- doc/src/sgml
- src
- backend/utils/adt
- test/regress
- expected
- sql
4 files changed
+94
-40
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14715 | 14715 | | |
14716 | 14716 | | |
14717 | 14717 | | |
14718 | | - | |
| 14718 | + | |
| 14719 | + | |
| 14720 | + | |
14719 | 14721 | | |
| 14722 | + | |
| 14723 | + | |
14720 | 14724 | | |
14721 | 14725 | | |
14722 | 14726 | | |
| |||
14727 | 14731 | | |
14728 | 14732 | | |
14729 | 14733 | | |
| 14734 | + | |
| 14735 | + | |
| 14736 | + | |
| 14737 | + | |
| 14738 | + | |
| 14739 | + | |
| 14740 | + | |
| 14741 | + | |
| 14742 | + | |
| 14743 | + | |
| 14744 | + | |
| 14745 | + | |
| 14746 | + | |
| 14747 | + | |
| 14748 | + | |
| 14749 | + | |
14730 | 14750 | | |
14731 | 14751 | | |
14732 | 14752 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4690 | 4690 | | |
4691 | 4691 | | |
4692 | 4692 | | |
4693 | | - | |
| 4693 | + | |
| 4694 | + | |
4694 | 4695 | | |
4695 | 4696 | | |
4696 | 4697 | | |
4697 | 4698 | | |
| 4699 | + | |
| 4700 | + | |
4698 | 4701 | | |
4699 | 4702 | | |
4700 | 4703 | | |
| |||
4703 | 4706 | | |
4704 | 4707 | | |
4705 | 4708 | | |
4706 | | - | |
4707 | | - | |
| 4709 | + | |
| 4710 | + | |
| 4711 | + | |
4708 | 4712 | | |
4709 | 4713 | | |
4710 | 4714 | | |
4711 | 4715 | | |
4712 | | - | |
4713 | | - | |
4714 | | - | |
4715 | | - | |
4716 | 4716 | | |
4717 | 4717 | | |
| 4718 | + | |
| 4719 | + | |
| 4720 | + | |
4718 | 4721 | | |
4719 | 4722 | | |
4720 | 4723 | | |
| |||
4731 | 4734 | | |
4732 | 4735 | | |
4733 | 4736 | | |
4734 | | - | |
4735 | | - | |
4736 | | - | |
| 4737 | + | |
4737 | 4738 | | |
4738 | | - | |
4739 | | - | |
4740 | | - | |
| 4739 | + | |
| 4740 | + | |
| 4741 | + | |
| 4742 | + | |
4741 | 4743 | | |
4742 | 4744 | | |
4743 | 4745 | | |
4744 | | - | |
4745 | | - | |
4746 | | - | |
4747 | | - | |
4748 | | - | |
4749 | | - | |
4750 | | - | |
4751 | | - | |
4752 | | - | |
4753 | | - | |
4754 | | - | |
4755 | | - | |
4756 | | - | |
4757 | | - | |
4758 | | - | |
4759 | | - | |
4760 | | - | |
| 4746 | + | |
| 4747 | + | |
| 4748 | + | |
4761 | 4749 | | |
4762 | | - | |
4763 | | - | |
| 4750 | + | |
| 4751 | + | |
4764 | 4752 | | |
4765 | 4753 | | |
4766 | 4754 | | |
4767 | 4755 | | |
4768 | | - | |
4769 | | - | |
| 4756 | + | |
4770 | 4757 | | |
4771 | | - | |
4772 | | - | |
4773 | | - | |
| 4758 | + | |
| 4759 | + | |
| 4760 | + | |
| 4761 | + | |
| 4762 | + | |
| 4763 | + | |
| 4764 | + | |
| 4765 | + | |
| 4766 | + | |
| 4767 | + | |
| 4768 | + | |
| 4769 | + | |
| 4770 | + | |
4774 | 4771 | | |
4775 | 4772 | | |
4776 | 4773 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4111 | 4111 | | |
4112 | 4112 | | |
4113 | 4113 | | |
4114 | | - | |
| 4114 | + | |
| 4115 | + | |
| 4116 | + | |
| 4117 | + | |
| 4118 | + | |
4115 | 4119 | | |
4116 | | - | |
| 4120 | + | |
| 4121 | + | |
| 4122 | + | |
| 4123 | + | |
| 4124 | + | |
| 4125 | + | |
| 4126 | + | |
| 4127 | + | |
| 4128 | + | |
| 4129 | + | |
| 4130 | + | |
| 4131 | + | |
| 4132 | + | |
| 4133 | + | |
| 4134 | + | |
| 4135 | + | |
| 4136 | + | |
| 4137 | + | |
| 4138 | + | |
| 4139 | + | |
| 4140 | + | |
| 4141 | + | |
| 4142 | + | |
| 4143 | + | |
| 4144 | + | |
| 4145 | + | |
| 4146 | + | |
| 4147 | + | |
| 4148 | + | |
4117 | 4149 | | |
4118 | 4150 | | |
4119 | 4151 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1056 | 1056 | | |
1057 | 1057 | | |
1058 | 1058 | | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
1059 | 1064 | | |
1060 | 1065 | | |
1061 | 1066 | | |
| |||
0 commit comments
Comments
(0)