forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita0943db
committed
Allow IMPORT FOREIGN SCHEMA within pl/pgsql.
Since IMPORT FOREIGN SCHEMA has an INTO clause, pl/pgsql needs to beaware of that and avoid capturing the INTO as an INTO-variables clause.This isn't hard, though it's annoying to have to make IMPORT a plpgsqlkeyword just for this. (Fortunately, we have the infrastructure nowto make it an unreserved keyword, so at least this shouldn't break anyexisting pl/pgsql code.)Per report from Merlin Moncure. Back-patch to 9.5 where IMPORT FOREIGNSCHEMA was introduced.Report: <CAHyXU0wpHf2bbtKGL1gtUEFATCY86r=VKxfcACVcTMQ70mCyig@mail.gmail.com>1 parent2d22c3b commita0943db
2 files changed
+39
-9
lines changedLines changed: 38 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
286 | 286 |
| |
287 | 287 |
| |
288 | 288 |
| |
| 289 | + | |
289 | 290 |
| |
290 | 291 |
| |
291 | 292 |
| |
| |||
1891 | 1892 |
| |
1892 | 1893 |
| |
1893 | 1894 |
| |
1894 |
| - | |
| 1895 | + | |
| 1896 | + | |
| 1897 | + | |
| 1898 | + | |
| 1899 | + | |
1895 | 1900 |
| |
1896 | 1901 |
| |
1897 | 1902 |
| |
| |||
2369 | 2374 |
| |
2370 | 2375 |
| |
2371 | 2376 |
| |
| 2377 | + | |
2372 | 2378 |
| |
2373 | 2379 |
| |
2374 | 2380 |
| |
| |||
2794 | 2800 |
| |
2795 | 2801 |
| |
2796 | 2802 |
| |
2797 |
| - | |
2798 |
| - | |
2799 |
| - | |
2800 |
| - | |
2801 |
| - | |
2802 |
| - | |
| 2803 | + | |
| 2804 | + | |
| 2805 | + | |
| 2806 | + | |
| 2807 | + | |
| 2808 | + | |
| 2809 | + | |
| 2810 | + | |
| 2811 | + | |
| 2812 | + | |
| 2813 | + | |
| 2814 | + | |
| 2815 | + | |
| 2816 | + | |
| 2817 | + | |
| 2818 | + | |
| 2819 | + | |
| 2820 | + | |
| 2821 | + | |
| 2822 | + | |
| 2823 | + | |
| 2824 | + | |
| 2825 | + | |
| 2826 | + | |
| 2827 | + | |
| 2828 | + | |
2803 | 2829 |
| |
2804 | 2830 |
| |
2805 | 2831 |
| |
| |||
2812 | 2838 |
| |
2813 | 2839 |
| |
2814 | 2840 |
| |
2815 |
| - | |
2816 |
| - | |
| 2841 | + | |
2817 | 2842 |
| |
| 2843 | + | |
| 2844 | + | |
| 2845 | + | |
| 2846 | + | |
2818 | 2847 |
| |
2819 | 2848 |
| |
2820 | 2849 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
127 | 127 |
| |
128 | 128 |
| |
129 | 129 |
| |
| 130 | + | |
130 | 131 |
| |
131 | 132 |
| |
132 | 133 |
| |
|
0 commit comments
Comments
(0)