Fix plpgsql so that when a local variable has no initial-value expression,
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 1 Feb 2007 19:23:00 +0000 (19:23 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 1 Feb 2007 19:23:00 +0000 (19:23 +0000)
commit8fe49d068681dc2a13a3f8cea18db8c53bd90a98
tree1f0ecd79dc3b76eadef798052a3f6e940ecc8b8c
parent1a3f16dd1d6c0c6e6e01410c92ade94efcdf615b
Fix plpgsql so that when a local variable has no initial-value expression,
an error will be thrown correctly if the variable is of a NOT NULL domain.
Report and almost-correct fix from Sergiy Vyshnevetskiy (bug #2948).
src/pl/plpgsql/src/pl_exec.c
src/test/regress/expected/domain.out
src/test/regress/sql/domain.sql