Обсуждение: pgsql: Fix plpgsql so that when a local variable has no initial-value

Поиск
Список
Период
Сортировка

pgsql: Fix plpgsql so that when a local variable has no initial-value

От
tgl@postgresql.org (Tom Lane)
Дата:
Log Message:
-----------
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).

Modified Files:
--------------
    pgsql/src/pl/plpgsql/src:
        pl_exec.c (r1.186 -> r1.187)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpgsql/src/pl_exec.c.diff?r1=1.186&r2=1.187)
    pgsql/src/test/regress/expected:
        domain.out (r1.38 -> r1.39)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/expected/domain.out.diff?r1=1.38&r2=1.39)
    pgsql/src/test/regress/sql:
        domain.sql (r1.21 -> r1.22)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/sql/domain.sql.diff?r1=1.21&r2=1.22)