forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1371a1e
committed
Use the properly transformed RangeVar for expandTableLikeClause().
transformCreateStmt() adjusts the transformed statement's RangeVarto specify the target schema explicitly, for the express reasonof making sure that auxiliary statements derived by parsetransformation operate on the right table. But the refactoringI did in commit5028981 got this wrong and passed the untransformedRangeVar to expandTableLikeClause(). This could lead to assertionfailures or weird misbehavior if the wrong table was accessed.Per report from Alexander Lakhin. Like the previous patch, back-patchto all supported branches.Discussion:https://postgr.es/m/05051f9d-b32b-cb35-6735-0e9f2ab86b5f@gmail.com1 parent6a8f6ae commit1371a1e
File tree
3 files changed
+40
-6
lines changed- src
- backend/tcop
- test/regress
- expected
- sql
3 files changed
+40
-6
lines changedLines changed: 17 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
995 | 995 |
| |
996 | 996 |
| |
997 | 997 |
| |
| 998 | + | |
998 | 999 |
| |
999 | 1000 |
| |
1000 | 1001 |
| |
| |||
1007 | 1008 |
| |
1008 | 1009 |
| |
1009 | 1010 |
| |
| 1011 | + | |
1010 | 1012 |
| |
1011 | 1013 |
| |
1012 | 1014 |
| |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
1013 | 1018 |
| |
1014 |
| - | |
| 1019 | + | |
1015 | 1020 |
| |
1016 | 1021 |
| |
1017 | 1022 |
| |
| |||
1030 | 1035 |
| |
1031 | 1036 |
| |
1032 | 1037 |
| |
1033 |
| - | |
| 1038 | + | |
1034 | 1039 |
| |
1035 | 1040 |
| |
1036 | 1041 |
| |
| |||
1044 | 1049 |
| |
1045 | 1050 |
| |
1046 | 1051 |
| |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
1047 | 1057 |
| |
1048 |
| - | |
| 1058 | + | |
1049 | 1059 |
| |
1050 | 1060 |
| |
1051 | 1061 |
| |
1052 |
| - | |
| 1062 | + | |
1053 | 1063 |
| |
1054 | 1064 |
| |
1055 | 1065 |
| |
| |||
1064 | 1074 |
| |
1065 | 1075 |
| |
1066 | 1076 |
| |
1067 |
| - | |
1068 | 1077 |
| |
1069 | 1078 |
| |
1070 |
| - | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
1071 | 1082 |
| |
1072 | 1083 |
| |
1073 | 1084 |
| |
|
Lines changed: 18 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
421 | 421 |
| |
422 | 422 |
| |
423 | 423 |
| |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
424 | 442 |
| |
425 | 443 |
| |
426 | 444 |
| |
|
Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
163 | 163 |
| |
164 | 164 |
| |
165 | 165 |
| |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
166 | 171 |
| |
167 | 172 |
| |
168 | 173 |
| |
|
0 commit comments
Comments
(0)