Fix plpgsql so that when a local variable has no initial-value expression,
Tom Lane <tgl@sss.pgh.pa.us>
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
| Path | Change | +/− |
|---|---|---|
| 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 |