diff options
author | Bruce Momjian | 2008-09-24 19:51:22 +0000 |
---|---|---|
committer | Bruce Momjian | 2008-09-24 19:51:22 +0000 |
commit | 6e907e068aa038cf6c455c5f2c42cbd5bdcf35d4 (patch) | |
tree | aee8f1e1fb477e1335aac494fe6b3b14d53648a3 | |
parent | 6b7cfeaed1c6a28617fbd0c5bc46e51b5fe38317 (diff) |
Add documentation about when trigger values NEW/OLD return NULL.
Jeff Davis
-rw-r--r-- | doc/src/sgml/plpgsql.sgml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/src/sgml/plpgsql.sgml b/doc/src/sgml/plpgsql.sgml index 9b2e2e9402..bdc16dbacf 100644 --- a/doc/src/sgml/plpgsql.sgml +++ b/doc/src/sgml/plpgsql.sgml @@ -3036,7 +3036,8 @@ RAISE unique_violation USING MESSAGE = 'Duplicate user ID: ' || user_id; <para> Data type <type>RECORD</type>; variable holding the new database row for <command>INSERT</>/<command>UPDATE</> operations in row-level - triggers. This variable is <symbol>NULL</symbol> in statement-level triggers. + triggers. This variable is <symbol>NULL</symbol> in statement-level triggers + and for <command>DELETE</command> operations. </para> </listitem> </varlistentry> @@ -3047,7 +3048,8 @@ RAISE unique_violation USING MESSAGE = 'Duplicate user ID: ' || user_id; <para> Data type <type>RECORD</type>; variable holding the old database row for <command>UPDATE</>/<command>DELETE</> operations in row-level - triggers. This variable is <symbol>NULL</symbol> in statement-level triggers. + triggers. This variable is <symbol>NULL</symbol> in statement-level triggers + and for <command>INSERT</command> operations. </para> </listitem> </varlistentry> |