1 on-exception-ignore
The 'on-exception-ignore' element is used to group other elements to which you want to put the attribute onexception="ignore".
Therefore, any element that represents a directive that may produce an exception may appear one or more times in its arguments.
<on-exception-ignore>
<table /> *
<type /> *
<check /> *
<index /> *
<unique /> *
<primary /> *
<foreign /> *
<view /> *
<synonym /> *
<add-columns /> *
<modify-columns /> *
<drop-columns /> *
<rename-table /> *
<rename-column /> *
<drop-table /> *
<drop-synonym /> *
<drop-view /> *
<drop-check /> *
<drop-index /> *
<drop-unique /> *
<drop-primary /> *
<drop-foreign /> *
<enable-trigger /> *
<disable-trigger /> *
<drop-trigger /> *
<drop-function /> *
<drop-procedure /> *
<insert /> *
<delete /> *
<update /> *
</on-exception-ignore>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Etable | See section table. | ||||
Etype | See section type. | ||||
Echeck | See section table. | ||||
Eindex | See section table. | ||||
Eunique | See section table. | ||||
Eprimary | See section table. | ||||
Eforeign | See section table. | ||||
Eview | See section view. | ||||
Esynonym | See section synonym. | ||||
Eadd-columns | See section add-columns. | ||||
Emodify-columns | See section modify-columns. | ||||
Edrop-columns | See section drop-columns. | ||||
Erename-table | See section rename-table. | ||||
Erename-column | See section rename-column. | ||||
Edrop-table | See section drop-table. | ||||
Edrop-synonym | See section drop-synonym. | ||||
Edrop-view | See section drop-view. | ||||
Edrop-check | See section drop-check. | ||||
Edrop-index | See section drop-index. | ||||
Edrop-unique | See section drop-unique. | ||||
Edrop-primary | See section drop-primary. | ||||
Edrop-foreign | See section drop-foreign. | ||||
Eenable-trigger | See section enable-trigger. | ||||
Edisable-trigger | See section disable-trigger. | ||||
Edrop-trigger | See section drop-trigger. | ||||
Edrop-function | See section drop-function. | ||||
Edrop-procedure | See section drop-procedure. | ||||
Einsert | See section insert. | ||||
Edelete | See section delete. | ||||
Eupdate | See section update. |
1.1 Example
In the following example we see two equivalent directives:
Example
Copy
<on-exception-ignore> <enable-trigger table='test_ddl' name='f_test_ddl1' /> <drop-unique table='test_ddl' name='u_test_ddl1' /> <drop-view name='test_ddl_s' /> </on-exception-ignore> <!-- Equivalent to: --> <on-exception-ignore> <enable-trigger table='test_ddl' name='f_test_ddl1' onexception='ignore' /> <drop-unique table='test_ddl' name='u_test_ddl1' onexception='ignore' /> <drop-view name='test_ddl_s' onexception='ignore' /> </on-exception-ignore>