forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitca14c41
committed
Fix ruleutils.c's dumping of whole-row Vars in more contexts.
Commit7745bc3 intended to ensure that whole-row Vars would beprinted with "::type" decoration in all contexts where plain"var.*" notation would result in star-expansion, notably inROW() and VALUES() constructs. However, it missed the case ofINSERT with a single-row VALUES, as reported by Timur Khanjanov.Nosing around ruleutils.c, I found a second oversight: thecode for RowCompareExpr generates ROW() notation without benefitof an actual RowExpr, and naturally it wasn't in sync :-(.(The code for FieldStore also does this, but we don't expect thatto generate strictly parsable SQL anyway, so I left it alone.)Back-patch to all supported branches.Discussion:https://postgr.es/m/efaba6f9-4190-56be-8ff2-7a1674f9194f@intrans.baku.az1 parent2180833 commitca14c41
File tree
3 files changed
+57
-23
lines changed- src
- backend/utils/adt
- test/regress
- expected
- sql
3 files changed
+57
-23
lines changedLines changed: 34 additions & 22 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
432 | 432 |
| |
433 | 433 |
| |
434 | 434 |
| |
| 435 | + | |
| 436 | + | |
435 | 437 |
| |
436 | 438 |
| |
437 | 439 |
| |
| |||
6229 | 6231 |
| |
6230 | 6232 |
| |
6231 | 6233 |
| |
6232 |
| - | |
| 6234 | + | |
6233 | 6235 |
| |
6234 | 6236 |
| |
6235 | 6237 |
| |
| |||
8539 | 8541 |
| |
8540 | 8542 |
| |
8541 | 8543 |
| |
8542 |
| - | |
8543 |
| - | |
8544 | 8544 |
| |
8545 | 8545 |
| |
8546 | 8546 |
| |
8547 |
| - | |
| 8547 | + | |
| 8548 | + | |
| 8549 | + | |
8548 | 8550 |
| |
8549 | 8551 |
| |
8550 |
| - | |
8551 |
| - | |
8552 |
| - | |
8553 |
| - | |
8554 |
| - | |
8555 |
| - | |
8556 |
| - | |
8557 |
| - | |
8558 |
| - | |
| 8552 | + | |
8559 | 8553 |
| |
8560 | 8554 |
| |
8561 | 8555 |
| |
| |||
8568 | 8562 |
| |
8569 | 8563 |
| |
8570 | 8564 |
| |
8571 |
| - | |
8572 |
| - | |
8573 |
| - | |
8574 |
| - | |
8575 |
| - | |
8576 |
| - | |
8577 |
| - | |
8578 |
| - | |
8579 |
| - | |
| 8565 | + | |
8580 | 8566 |
| |
8581 | 8567 |
| |
8582 | 8568 |
| |
| |||
9121 | 9107 |
| |
9122 | 9108 |
| |
9123 | 9109 |
| |
| 9110 | + | |
| 9111 | + | |
| 9112 | + | |
| 9113 | + | |
| 9114 | + | |
| 9115 | + | |
| 9116 | + | |
| 9117 | + | |
| 9118 | + | |
| 9119 | + | |
| 9120 | + | |
| 9121 | + | |
| 9122 | + | |
| 9123 | + | |
| 9124 | + | |
| 9125 | + | |
| 9126 | + | |
| 9127 | + | |
| 9128 | + | |
| 9129 | + | |
| 9130 | + | |
| 9131 | + | |
| 9132 | + | |
| 9133 | + | |
| 9134 | + | |
| 9135 | + | |
9124 | 9136 |
| |
9125 | 9137 |
| |
9126 | 9138 |
| |
|
Lines changed: 18 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1636 | 1636 |
| |
1637 | 1637 |
| |
1638 | 1638 |
| |
| 1639 | + | |
| 1640 | + | |
| 1641 | + | |
| 1642 | + | |
| 1643 | + | |
| 1644 | + | |
| 1645 | + | |
| 1646 | + | |
| 1647 | + | |
| 1648 | + | |
| 1649 | + | |
| 1650 | + | |
| 1651 | + | |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
1639 | 1655 |
| |
1640 | 1656 |
| |
1641 | 1657 |
| |
| |||
1904 | 1920 |
| |
1905 | 1921 |
| |
1906 | 1922 |
| |
1907 |
| - | |
| 1923 | + | |
1908 | 1924 |
| |
1909 | 1925 |
| |
1910 | 1926 |
| |
| |||
1963 | 1979 |
| |
1964 | 1980 |
| |
1965 | 1981 |
| |
| 1982 | + | |
1966 | 1983 |
| |
1967 | 1984 |
| |
1968 | 1985 |
| |
|
Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
554 | 554 |
| |
555 | 555 |
| |
556 | 556 |
| |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
557 | 562 |
| |
558 | 563 |
| |
559 | 564 |
| |
|
0 commit comments
Comments
(0)