Обсуждение: pgsql: Fix crash when trying to display a NOTIFY rule action.

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

pgsql: Fix crash when trying to display a NOTIFY rule action.

От
Tom Lane
Дата:
Fix crash when trying to display a NOTIFY rule action.

Fixes oversight in commit 2ffa740be9d96a3743ecb7e42391c53d0760c65a.
Per report from Josh Kupershmidt.

I think we've broken this case before, so let's add a regression test
this time.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/403bd6a18b8ec5aeee51c08360441c3c3c239d8f

Modified Files
--------------
src/backend/utils/adt/ruleutils.c   |   19 ++++++++++++-------
src/test/regress/expected/rules.out |    4 ++++
src/test/regress/sql/rules.sql      |    1 +
3 files changed, 17 insertions(+), 7 deletions(-)