]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix variable lifespan in ExecInitCoerceToDomain().
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 2 Nov 2021 17:36:47 +0000 (13:36 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 2 Nov 2021 17:36:47 +0000 (13:36 -0400)
commit01fc6527034a6f70ed44a078af8f636b1ab64947
tree8626b23823dfd5e4787e9e1483c1261067d654b7
parent7d9ec0754afeabb9f336c5220ef415c3ea27a0b6
Fix variable lifespan in ExecInitCoerceToDomain().

This undoes a mistake in 1ec7679f1: domainval and domainnull were
meant to live across loop iterations, but they were incorrectly
moved inside the loop.  The effect was only to emit useless extra
EEOP_MAKE_READONLY steps, so it's not a big deal; nonetheless,
back-patch to v13 where the mistake was introduced.

Ranier Vilela

Discussion: https://postgr.es/m/CAEudQAqXuhbkaAp-sGH6dR6Nsq7v28_0TPexHOm6FiDYqwQD-w@mail.gmail.com
src/backend/executor/execExpr.c