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_0tpexhom6fidyqwq...@mail.gmail.com Branch ------ REL_14_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/16a56774fade2da2f44f9f6d6899a8113d5725fc Modified Files -------------- src/backend/executor/execExpr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)