aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/jsonpath.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2022-01-13 17:49:25 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2022-01-13 17:49:46 -0500
commit43c2175121c829c8591fc5117b725f1f22bfb670 (patch)
treee1a5d6307968bc4438d4acb0b9415d54deee7745 /src/backend/utils/adt/jsonpath.c
parentdfc0cb3940cd4d1f19fcf6c7545dc6cc01c6c92c (diff)
downloadpostgresql-43c2175121c829c8591fc5117b725f1f22bfb670.tar.gz
postgresql-43c2175121c829c8591fc5117b725f1f22bfb670.zip
Fix ruleutils.c's dumping of whole-row Vars in more contexts.
Commit 7745bc352 intended to ensure that whole-row Vars would be printed with "::type" decoration in all contexts where plain "var.*" notation would result in star-expansion, notably in ROW() and VALUES() constructs. However, it missed the case of INSERT with a single-row VALUES, as reported by Timur Khanjanov. Nosing around ruleutils.c, I found a second oversight: the code for RowCompareExpr generates ROW() notation without benefit of an actual RowExpr, and naturally it wasn't in sync :-(. (The code for FieldStore also does this, but we don't expect that to 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.az
Diffstat (limited to 'src/backend/utils/adt/jsonpath.c')
0 files changed, 0 insertions, 0 deletions