forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit12b721a
committed
Fix UtilityContainsQuery() to handle CREATE TABLE AS EXECUTE correctly.
The code seems to have been written to handle the pre-parse-analysisrepresentation, where an ExecuteStmt would appear directly underCreateTableAsStmt. But in reality the function is only run onalready-parse-analyzed statements, so there will be a Query node inbetween. We'd not noticed the bug because the function is generallynot used at all except in extended query protocol.Per report from Robert Haas and Rushabh Lathia.1 parent8a3249f commit12b721a
1 file changed
+4
-9
lines changedLines changed: 4 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1365 | 1365 |
| |
1366 | 1366 |
| |
1367 | 1367 |
| |
1368 |
| - | |
1369 | 1368 |
| |
1370 |
| - | |
1371 |
| - | |
1372 |
| - | |
1373 |
| - | |
1374 |
| - | |
1375 |
| - | |
1376 |
| - | |
1377 |
| - | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
1378 | 1373 |
| |
1379 | 1374 |
| |
1380 | 1375 |
| |
|
0 commit comments
Comments
(0)