forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitbaebab3
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 parentd3fbd59 commitbaebab3
2 files changed
+39
-9
lines changedLines changed: 38 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
287 | 287 |
| |
288 | 288 |
| |
289 | 289 |
| |
| 290 | + | |
290 | 291 |
| |
291 | 292 |
| |
292 | 293 |
| |
| |||
1929 | 1930 |
| |
1930 | 1931 |
| |
1931 | 1932 |
| |
1932 |
| - | |
| 1933 | + | |
| 1934 | + | |
| 1935 | + | |
| 1936 | + | |
| 1937 | + | |
1933 | 1938 |
| |
1934 | 1939 |
| |
1935 | 1940 |
| |
| |||
2418 | 2423 |
| |
2419 | 2424 |
| |
2420 | 2425 |
| |
| 2426 | + | |
2421 | 2427 |
| |
2422 | 2428 |
| |
2423 | 2429 |
| |
| |||
2843 | 2849 |
| |
2844 | 2850 |
| |
2845 | 2851 |
| |
2846 |
| - | |
2847 |
| - | |
2848 |
| - | |
2849 |
| - | |
2850 |
| - | |
2851 |
| - | |
| 2852 | + | |
| 2853 | + | |
| 2854 | + | |
| 2855 | + | |
| 2856 | + | |
| 2857 | + | |
| 2858 | + | |
| 2859 | + | |
| 2860 | + | |
| 2861 | + | |
| 2862 | + | |
| 2863 | + | |
| 2864 | + | |
| 2865 | + | |
| 2866 | + | |
| 2867 | + | |
| 2868 | + | |
| 2869 | + | |
| 2870 | + | |
| 2871 | + | |
| 2872 | + | |
| 2873 | + | |
| 2874 | + | |
| 2875 | + | |
| 2876 | + | |
| 2877 | + | |
2852 | 2878 |
| |
2853 | 2879 |
| |
2854 | 2880 |
| |
| |||
2861 | 2887 |
| |
2862 | 2888 |
| |
2863 | 2889 |
| |
2864 |
| - | |
2865 |
| - | |
| 2890 | + | |
2866 | 2891 |
| |
| 2892 | + | |
| 2893 | + | |
| 2894 | + | |
| 2895 | + | |
2867 | 2896 |
| |
2868 | 2897 |
| |
2869 | 2898 |
| |
|
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)