Fix plpgsql so that when a local variable has no initial-value expression,

Tom Lane <tgl@sss.pgh.pa.us>

Commit: b7c9821146145688477d9e09bb5a176bf1378d0b
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2007-02-01T19:23:00Z
Releases: 8.2.2
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).

Files

PathChange+/−
src/pl/plpgsql/src/pl_exec.c modified +20 −1
src/test/regress/expected/domain.out modified +16 −0
src/test/regress/sql/domain.sql modified +16 −0