forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit45a3cef
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 parent850c704 commit45a3cef
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 | |
---|---|---|---|
| |||
421 | 421 |
| |
422 | 422 |
| |
423 | 423 |
| |
| 424 | + | |
| 425 | + | |
424 | 426 |
| |
425 | 427 |
| |
426 | 428 |
| |
| |||
6278 | 6280 |
| |
6279 | 6281 |
| |
6280 | 6282 |
| |
6281 |
| - | |
| 6283 | + | |
6282 | 6284 |
| |
6283 | 6285 |
| |
6284 | 6286 |
| |
| |||
8466 | 8468 |
| |
8467 | 8469 |
| |
8468 | 8470 |
| |
8469 |
| - | |
8470 |
| - | |
8471 | 8471 |
| |
8472 | 8472 |
| |
8473 | 8473 |
| |
8474 |
| - | |
| 8474 | + | |
| 8475 | + | |
| 8476 | + | |
8475 | 8477 |
| |
8476 | 8478 |
| |
8477 |
| - | |
8478 |
| - | |
8479 |
| - | |
8480 |
| - | |
8481 |
| - | |
8482 |
| - | |
8483 |
| - | |
8484 |
| - | |
8485 |
| - | |
| 8479 | + | |
8486 | 8480 |
| |
8487 | 8481 |
| |
8488 | 8482 |
| |
| |||
8495 | 8489 |
| |
8496 | 8490 |
| |
8497 | 8491 |
| |
8498 |
| - | |
8499 |
| - | |
8500 |
| - | |
8501 |
| - | |
8502 |
| - | |
8503 |
| - | |
8504 |
| - | |
8505 |
| - | |
8506 |
| - | |
| 8492 | + | |
8507 | 8493 |
| |
8508 | 8494 |
| |
8509 | 8495 |
| |
| |||
9048 | 9034 |
| |
9049 | 9035 |
| |
9050 | 9036 |
| |
| 9037 | + | |
| 9038 | + | |
| 9039 | + | |
| 9040 | + | |
| 9041 | + | |
| 9042 | + | |
| 9043 | + | |
| 9044 | + | |
| 9045 | + | |
| 9046 | + | |
| 9047 | + | |
| 9048 | + | |
| 9049 | + | |
| 9050 | + | |
| 9051 | + | |
| 9052 | + | |
| 9053 | + | |
| 9054 | + | |
| 9055 | + | |
| 9056 | + | |
| 9057 | + | |
| 9058 | + | |
| 9059 | + | |
| 9060 | + | |
| 9061 | + | |
| 9062 | + | |
9051 | 9063 |
| |
9052 | 9064 |
| |
9053 | 9065 |
| |
|
Lines changed: 18 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1612 | 1612 |
| |
1613 | 1613 |
| |
1614 | 1614 |
| |
| 1615 | + | |
| 1616 | + | |
| 1617 | + | |
| 1618 | + | |
| 1619 | + | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
| 1629 | + | |
| 1630 | + | |
1615 | 1631 |
| |
1616 | 1632 |
| |
1617 | 1633 |
| |
| |||
1782 | 1798 |
| |
1783 | 1799 |
| |
1784 | 1800 |
| |
1785 |
| - | |
| 1801 | + | |
1786 | 1802 |
| |
1787 | 1803 |
| |
1788 | 1804 |
| |
| |||
1840 | 1856 |
| |
1841 | 1857 |
| |
1842 | 1858 |
| |
| 1859 | + | |
1843 | 1860 |
| |
1844 | 1861 |
| |
1845 | 1862 |
| |
|
Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
548 | 548 |
| |
549 | 549 |
| |
550 | 550 |
| |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
551 | 556 |
| |
552 | 557 |
| |
553 | 558 |
| |
|
0 commit comments
Comments
(0)