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)
commit5bfbabb761f5e95d29019c69fdbf3f5df8c96c19
treee815f1df4247fbcd3d41dd17b574c906685c4753
parent50b0b653bb74113c25f009b16bb4ae428fea59e4
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