<replaceable class="parameter">query</replaceable>
|
( <replaceable class="parameter">query</replaceable> ; <replaceable class="parameter">query</replaceable> ... )
-|
-[ <replaceable class="parameter">query</replaceable> ; <replaceable class="parameter">query</replaceable> ... ]
</synopsis>
<refsect2 id="R2-SQL-CREATERULE-1">
</para>
<para>
- The <replaceable class="parameter">action</replaceable> part of the rule
- can consist of one or more queries. To write multiple queries, surround
- them with either parentheses or square brackets. Such queries will be
- performed in the specified order (whereas there are no guarantees about
- the execution order of multiple rules for an object). The
- <replaceable class="parameter">action</replaceable> can also be NOTHING
- indicating no action. Thus, a DO INSTEAD NOTHING rule suppresses the
- original query from executing (when its condition is true); a DO NOTHING
- rule is useless.
+ The <replaceable class="parameter">action</replaceable> part of the
+ rule can consist of one or more queries. To write multiple queries,
+ surround them with parentheses. Such queries will be performed in the
+ specified order (whereas there are no guarantees about the execution
+ order of multiple rules for an object). The <replaceable
+ class="parameter">action</replaceable> can also be NOTHING indicating
+ no action. Thus, a DO INSTEAD NOTHING rule suppresses the original
+ query from executing (when its condition is true); a DO NOTHING rule
+ is useless.
</para>
<para>
RuleActionList: NOTHING { $$ = make_str("nothing"); }
| RuleActionStmt { $$ = $1; }
- | '[' RuleActionMulti ']' { $$ = cat_str(3, make_str("["), $2, make_str("]")); }
| '(' RuleActionMulti ')' { $$ = cat_str(3, make_str("("), $2, make_str(")")); }
;