forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4aee39d
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 parent3c1ffd0 commit4aee39d
File tree
3 files changed
+57
-23
lines changed- src
- backend/utils/adt
- test/regress
- expected
- sql
3 files changed
+57
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
| 441 | + | |
| 442 | + | |
441 | 443 | | |
442 | 444 | | |
443 | 445 | | |
| |||
6580 | 6582 | | |
6581 | 6583 | | |
6582 | 6584 | | |
6583 | | - | |
| 6585 | + | |
6584 | 6586 | | |
6585 | 6587 | | |
6586 | 6588 | | |
| |||
8944 | 8946 | | |
8945 | 8947 | | |
8946 | 8948 | | |
8947 | | - | |
8948 | | - | |
8949 | 8949 | | |
8950 | 8950 | | |
8951 | 8951 | | |
8952 | | - | |
| 8952 | + | |
| 8953 | + | |
| 8954 | + | |
8953 | 8955 | | |
8954 | 8956 | | |
8955 | | - | |
8956 | | - | |
8957 | | - | |
8958 | | - | |
8959 | | - | |
8960 | | - | |
8961 | | - | |
8962 | | - | |
8963 | | - | |
| 8957 | + | |
8964 | 8958 | | |
8965 | 8959 | | |
8966 | 8960 | | |
| |||
8973 | 8967 | | |
8974 | 8968 | | |
8975 | 8969 | | |
8976 | | - | |
8977 | | - | |
8978 | | - | |
8979 | | - | |
8980 | | - | |
8981 | | - | |
8982 | | - | |
8983 | | - | |
8984 | | - | |
| 8970 | + | |
8985 | 8971 | | |
8986 | 8972 | | |
8987 | 8973 | | |
| |||
9526 | 9512 | | |
9527 | 9513 | | |
9528 | 9514 | | |
| 9515 | + | |
| 9516 | + | |
| 9517 | + | |
| 9518 | + | |
| 9519 | + | |
| 9520 | + | |
| 9521 | + | |
| 9522 | + | |
| 9523 | + | |
| 9524 | + | |
| 9525 | + | |
| 9526 | + | |
| 9527 | + | |
| 9528 | + | |
| 9529 | + | |
| 9530 | + | |
| 9531 | + | |
| 9532 | + | |
| 9533 | + | |
| 9534 | + | |
| 9535 | + | |
| 9536 | + | |
| 9537 | + | |
| 9538 | + | |
| 9539 | + | |
| 9540 | + | |
9529 | 9541 | | |
9530 | 9542 | | |
9531 | 9543 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1681 | 1681 | | |
1682 | 1682 | | |
1683 | 1683 | | |
| 1684 | + | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
| 1688 | + | |
| 1689 | + | |
| 1690 | + | |
| 1691 | + | |
| 1692 | + | |
| 1693 | + | |
| 1694 | + | |
| 1695 | + | |
| 1696 | + | |
| 1697 | + | |
| 1698 | + | |
| 1699 | + | |
1684 | 1700 | | |
1685 | 1701 | | |
1686 | 1702 | | |
| |||
1994 | 2010 | | |
1995 | 2011 | | |
1996 | 2012 | | |
1997 | | - | |
| 2013 | + | |
1998 | 2014 | | |
1999 | 2015 | | |
2000 | 2016 | | |
| |||
2058 | 2074 | | |
2059 | 2075 | | |
2060 | 2076 | | |
| 2077 | + | |
2061 | 2078 | | |
2062 | 2079 | | |
2063 | 2080 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
565 | 565 | | |
566 | 566 | | |
567 | 567 | | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
568 | 573 | | |
569 | 574 | | |
570 | 575 | | |
| |||
0 commit comments
Comments
(0)