Document DELETE/UPDATE command tag behavior when triggers are involved.
Marti Raudsepp
This commit is contained in:
parent
0ff7ea5d3c
commit
61dd737c29
@ -206,10 +206,12 @@ DELETE FROM [ ONLY ] <replaceable class="PARAMETER">table</replaceable> [ [ AS ]
|
||||
DELETE <replaceable class="parameter">count</replaceable>
|
||||
</screen>
|
||||
The <replaceable class="parameter">count</replaceable> is the number
|
||||
of rows deleted. If <replaceable class="parameter">count</replaceable> is
|
||||
0, no rows matched the <replaceable
|
||||
class="parameter">condition</replaceable> (this is not considered
|
||||
an error).
|
||||
of rows deleted. Note that the number may be less than the number of
|
||||
rows that matched the <replaceable
|
||||
class="parameter">condition</replaceable> when deletes were
|
||||
suppressed by a <literal>BEFORE DELETE</> trigger. If <replaceable
|
||||
class="parameter">count</replaceable> is 0, no rows were deleted by
|
||||
the query (this is not considered an error).
|
||||
</para>
|
||||
|
||||
<para>
|
||||
|
@ -226,10 +226,12 @@ UPDATE [ ONLY ] <replaceable class="PARAMETER">table</replaceable> [ [ AS ] <rep
|
||||
UPDATE <replaceable class="parameter">count</replaceable>
|
||||
</screen>
|
||||
The <replaceable class="parameter">count</replaceable> is the number
|
||||
of rows updated. If <replaceable class="parameter">count</replaceable> is
|
||||
0, no rows matched the <replaceable
|
||||
class="parameter">condition</replaceable> (this is not considered
|
||||
an error).
|
||||
of rows updated, including matched rows whose values did not change.
|
||||
Note that the number may be less than the number of rows that matched
|
||||
the <replaceable class="parameter">condition</replaceable> when
|
||||
updates were suppressed by a <literal>BEFORE UPDATE</> trigger. If
|
||||
<replaceable class="parameter">count</replaceable> is 0, no rows were
|
||||
updated by the query (this is not considered an error).
|
||||
</para>
|
||||
|
||||
<para>
|
||||
|
Loading…
Reference in New Issue
Block a user