- Notifications
You must be signed in to change notification settings - Fork28
Commitb380484
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 commit 502898192 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 parente6bbe07 commitb380484
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 | |
---|---|---|---|
| |||
1137 | 1137 |
| |
1138 | 1138 |
| |
1139 | 1139 |
| |
| 1140 | + | |
1140 | 1141 |
| |
1141 | 1142 |
| |
1142 | 1143 |
| |
| |||
1149 | 1150 |
| |
1150 | 1151 |
| |
1151 | 1152 |
| |
| 1153 | + | |
1152 | 1154 |
| |
1153 | 1155 |
| |
1154 | 1156 |
| |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
1155 | 1160 |
| |
1156 |
| - | |
| 1161 | + | |
1157 | 1162 |
| |
1158 | 1163 |
| |
1159 | 1164 |
| |
| |||
1172 | 1177 |
| |
1173 | 1178 |
| |
1174 | 1179 |
| |
1175 |
| - | |
| 1180 | + | |
1176 | 1181 |
| |
1177 | 1182 |
| |
1178 | 1183 |
| |
| |||
1186 | 1191 |
| |
1187 | 1192 |
| |
1188 | 1193 |
| |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
1189 | 1199 |
| |
1190 |
| - | |
| 1200 | + | |
1191 | 1201 |
| |
1192 | 1202 |
| |
1193 | 1203 |
| |
1194 |
| - | |
| 1204 | + | |
1195 | 1205 |
| |
1196 | 1206 |
| |
1197 | 1207 |
| |
| |||
1206 | 1216 |
| |
1207 | 1217 |
| |
1208 | 1218 |
| |
1209 |
| - | |
1210 | 1219 |
| |
1211 | 1220 |
| |
1212 |
| - | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
1213 | 1224 |
| |
1214 | 1225 |
| |
1215 | 1226 |
| |
|
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)