- Notifications
You must be signed in to change notification settings - Fork28
Commitd8db6a6
committed
Fold FindConversion() into FindConversionByName() and remove ACL check.
All callers of FindConversionByName() already do suitable permissionschecking already apart from this function, but this is not just deadcode removal: the unnecessary permissions check can actually lead tospurious failures - there's no reason why inability to execute theunderlying function should prohibit renaming the conversion, for example.(The error messages in these cases were also rather poor:FindConversion would return InvalidOid, eventually leading to a complaintthat the conversion "did not exist", which was not correct.)KaiGai Kohei1 parent4d32f6d commitd8db6a6
File tree
3 files changed
+11
-41
lines changed- src
- backend/catalog
- include/catalog
3 files changed
+11
-41
lines changedLines changed: 9 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 |
| - | |
| 16 | + | |
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
| |||
2836 | 2836 |
| |
2837 | 2837 |
| |
2838 | 2838 |
| |
2839 |
| - | |
| 2839 | + | |
| 2840 | + | |
| 2841 | + | |
| 2842 | + | |
2840 | 2843 |
| |
2841 | 2844 |
| |
2842 | 2845 |
| |
| |||
2850 | 2853 |
| |
2851 | 2854 |
| |
2852 | 2855 |
| |
2853 |
| - | |
| 2856 | + | |
| 2857 | + | |
| 2858 | + | |
| 2859 | + | |
2854 | 2860 |
| |
2855 | 2861 |
| |
2856 | 2862 |
| |
|
Lines changed: 1 addition & 36 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 |
| |
| |||
209 | 209 |
| |
210 | 210 |
| |
211 | 211 |
| |
212 |
| - | |
213 |
| - | |
214 |
| - | |
215 |
| - | |
216 |
| - | |
217 |
| - | |
218 |
| - | |
219 |
| - | |
220 |
| - | |
221 |
| - | |
222 |
| - | |
223 |
| - | |
224 |
| - | |
225 |
| - | |
226 |
| - | |
227 |
| - | |
228 |
| - | |
229 |
| - | |
230 |
| - | |
231 |
| - | |
232 |
| - | |
233 |
| - | |
234 |
| - | |
235 |
| - | |
236 |
| - | |
237 |
| - | |
238 |
| - | |
239 |
| - | |
240 |
| - | |
241 |
| - | |
242 |
| - | |
243 |
| - | |
244 |
| - | |
245 |
| - | |
246 |
| - |
Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 |
| - | |
23 | 22 |
| |
24 | 23 |
| |
25 | 24 |
|
0 commit comments
Comments
(0)