forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite4044ba
committed
Fix for this problem:
regression=# select 1 from tenk1 ta cross join tenk1 tb for update;ERROR: no relation entry for relid 37.3 said "SELECT FOR UPDATE cannot be applied to a join", which was betterbut still wrong, considering that 7.2 took the query just fine. Fix bymaking transformForUpdate() ignore JOIN and other special RTE types,rather than trying to mark them FOR UPDATE. The actual error message nowonly appears if you explicitly name the join in FOR UPDATE.1 parent622736a commite4044ba
2 files changed
+58
-30
lines changedLines changed: 1 addition & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
91 | 91 |
| |
92 | 92 |
| |
93 | 93 |
| |
94 |
| - | |
95 |
| - | |
96 |
| - | |
97 |
| - | |
98 |
| - | |
99 |
| - | |
100 |
| - | |
101 |
| - | |
102 | 94 |
| |
103 | 95 |
| |
104 | 96 |
| |
|
Lines changed: 57 additions & 21 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 |
| - | |
| 9 | + | |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
| |||
2821 | 2821 |
| |
2822 | 2822 |
| |
2823 | 2823 |
| |
| 2824 | + | |
| 2825 | + | |
| 2826 | + | |
| 2827 | + | |
| 2828 | + | |
| 2829 | + | |
2824 | 2830 |
| |
2825 | 2831 |
| |
2826 | 2832 |
| |
| |||
2833 | 2839 |
| |
2834 | 2840 |
| |
2835 | 2841 |
| |
2836 |
| - | |
| 2842 | + | |
2837 | 2843 |
| |
2838 | 2844 |
| |
2839 | 2845 |
| |
2840 | 2846 |
| |
2841 | 2847 |
| |
2842 | 2848 |
| |
2843 |
| - | |
2844 |
| - | |
2845 |
| - | |
2846 |
| - | |
2847 |
| - | |
2848 |
| - | |
| 2849 | + | |
2849 | 2850 |
| |
2850 |
| - | |
2851 |
| - | |
2852 |
| - | |
| 2851 | + | |
| 2852 | + | |
| 2853 | + | |
| 2854 | + | |
| 2855 | + | |
| 2856 | + | |
| 2857 | + | |
| 2858 | + | |
| 2859 | + | |
| 2860 | + | |
| 2861 | + | |
| 2862 | + | |
| 2863 | + | |
| 2864 | + | |
| 2865 | + | |
2853 | 2866 |
| |
2854 | 2867 |
| |
2855 | 2868 |
| |
| |||
2868 | 2881 |
| |
2869 | 2882 |
| |
2870 | 2883 |
| |
2871 |
| - | |
| 2884 | + | |
2872 | 2885 |
| |
2873 |
| - | |
2874 |
| - | |
2875 |
| - | |
2876 |
| - | |
2877 |
| - | |
2878 |
| - | |
2879 |
| - | |
2880 |
| - | |
| 2886 | + | |
| 2887 | + | |
| 2888 | + | |
| 2889 | + | |
| 2890 | + | |
| 2891 | + | |
| 2892 | + | |
| 2893 | + | |
| 2894 | + | |
| 2895 | + | |
| 2896 | + | |
| 2897 | + | |
| 2898 | + | |
| 2899 | + | |
| 2900 | + | |
| 2901 | + | |
| 2902 | + | |
| 2903 | + | |
| 2904 | + | |
| 2905 | + | |
| 2906 | + | |
| 2907 | + | |
| 2908 | + | |
| 2909 | + | |
| 2910 | + | |
| 2911 | + | |
| 2912 | + | |
| 2913 | + | |
| 2914 | + | |
| 2915 | + | |
| 2916 | + | |
2881 | 2917 |
| |
2882 |
| - | |
| 2918 | + | |
2883 | 2919 |
| |
2884 | 2920 |
| |
2885 | 2921 |
| |
|
0 commit comments
Comments
(0)