Skip to content
Snippets Groups Projects
Commit 0729271a authored by Bruce Momjian's avatar Bruce Momjian
Browse files

Properly document that NEW is unassigned in plpgsql for DELETE (not

NULL), and OLD is unassigned for INSERT, and NEW/OLD are unassigned (not
NULL) for statement-level triggers.

Per report from Pavel Stehule
parent d55f1b85
No related branches found
No related tags found
No related merge requests found
...@@ -3403,7 +3403,7 @@ RAISE unique_violation USING MESSAGE = 'Duplicate user ID: ' || user_id; ...@@ -3403,7 +3403,7 @@ RAISE unique_violation USING MESSAGE = 'Duplicate user ID: ' || user_id;
<para> <para>
Data type <type>RECORD</type>; variable holding the new Data type <type>RECORD</type>; variable holding the new
database row for <command>INSERT</>/<command>UPDATE</> operations in row-level 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 unassigned in statement-level triggers
and for <command>DELETE</command> operations. and for <command>DELETE</command> operations.
</para> </para>
</listitem> </listitem>
...@@ -3415,7 +3415,7 @@ RAISE unique_violation USING MESSAGE = 'Duplicate user ID: ' || user_id; ...@@ -3415,7 +3415,7 @@ RAISE unique_violation USING MESSAGE = 'Duplicate user ID: ' || user_id;
<para> <para>
Data type <type>RECORD</type>; variable holding the old Data type <type>RECORD</type>; variable holding the old
database row for <command>UPDATE</>/<command>DELETE</> operations in row-level 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 unassigned in statement-level triggers
and for <command>INSERT</command> operations. and for <command>INSERT</command> operations.
</para> </para>
</listitem> </listitem>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment