Commit 9da8675
committed
Reject duplicate column names in foreign key referenced-columns lists.
Such cases are disallowed by the SQL spec, and even if we wanted to allow
them, the semantics seem ambiguous: how should the FK columns be matched up
with the columns of a unique index? (The matching could be significant in
the presence of opclasses with different notions of equality, so this issue
isn't just academic.) However, our code did not previously reject such
cases, but instead would either fail to match to any unique index, or
generate a bizarre opclass-lookup error because of sloppy thinking in the
index-matching code.
David Rowley1 parent f25e0bf commit 9da8675
1 file changed
+29
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6738 | 6738 | | |
6739 | 6739 | | |
6740 | 6740 | | |
| 6741 | + | |
| 6742 | + | |
| 6743 | + | |
| 6744 | + | |
| 6745 | + | |
| 6746 | + | |
| 6747 | + | |
| 6748 | + | |
| 6749 | + | |
| 6750 | + | |
| 6751 | + | |
| 6752 | + | |
| 6753 | + | |
| 6754 | + | |
| 6755 | + | |
| 6756 | + | |
| 6757 | + | |
| 6758 | + | |
| 6759 | + | |
| 6760 | + | |
6741 | 6761 | | |
6742 | 6762 | | |
6743 | 6763 | | |
| |||
6750 | 6770 | | |
6751 | 6771 | | |
6752 | 6772 | | |
6753 | | - | |
6754 | | - | |
6755 | 6773 | | |
6756 | 6774 | | |
6757 | 6775 | | |
| |||
6770 | 6788 | | |
6771 | 6789 | | |
6772 | 6790 | | |
6773 | | - | |
6774 | 6791 | | |
6775 | 6792 | | |
6776 | 6793 | | |
6777 | 6794 | | |
| 6795 | + | |
6778 | 6796 | | |
6779 | 6797 | | |
6780 | 6798 | | |
6781 | 6799 | | |
6782 | 6800 | | |
6783 | 6801 | | |
6784 | 6802 | | |
6785 | | - | |
| 6803 | + | |
| 6804 | + | |
| 6805 | + | |
| 6806 | + | |
| 6807 | + | |
| 6808 | + | |
| 6809 | + | |
6786 | 6810 | | |
6787 | 6811 | | |
6788 | 6812 | | |
| |||
6791 | 6815 | | |
6792 | 6816 | | |
6793 | 6817 | | |
| 6818 | + | |
6794 | 6819 | | |
6795 | 6820 | | |
6796 | 6821 | | |
6797 | 6822 | | |
6798 | 6823 | | |
6799 | 6824 | | |
6800 | 6825 | | |
6801 | | - | |
6802 | | - | |
6803 | | - | |
6804 | | - | |
6805 | | - | |
6806 | | - | |
6807 | | - | |
6808 | | - | |
6809 | | - | |
6810 | | - | |
6811 | | - | |
6812 | | - | |
6813 | | - | |
6814 | | - | |
6815 | | - | |
6816 | | - | |
6817 | | - | |
6818 | | - | |
6819 | 6826 | | |
6820 | 6827 | | |
6821 | 6828 | | |
| |||
0 commit comments