|
1 | | -<REFENTRY ID="SQL-ABORT"> |
2 | | -<REFMETA> |
3 | | -<REFENTRYTITLE> |
4 | | -ABORT |
5 | | -</REFENTRYTITLE> |
6 | | -<REFMISCINFO>SQL - Language Statements</REFMISCINFO> |
7 | | -</REFMETA> |
8 | | -<REFNAMEDIV> |
9 | | -<REFNAME> |
10 | | -ABORT |
11 | | -</REFNAME> |
12 | | -<REFPURPOSE> |
13 | | -Aborts the current transaction |
14 | | -</REFPURPOSE> |
15 | | -</REFNAMEDIV> |
16 | | -<REFSYNOPSISDIV> |
17 | | -<REFSYNOPSISDIVINFO> |
18 | | -<DATE>1998-09-27</DATE> |
19 | | -</REFSYNOPSISDIVINFO> |
20 | | -<SYNOPSIS> |
21 | | -ABORT |
22 | | -</SYNOPSIS> |
| 1 | +<refentry id="SQL-ABORT"> |
| 2 | + <refmeta> |
| 3 | + <refentrytitle> |
| 4 | +ABORT |
| 5 | + </refentrytitle> |
| 6 | + <refmiscinfo>SQL - Language Statements</refmiscinfo> |
| 7 | + </refmeta> |
| 8 | + <refnamediv> |
| 9 | + <refname> |
| 10 | +ABORT |
| 11 | + </refname> |
| 12 | + <refpurpose> |
| 13 | +Aborts the current transaction |
| 14 | + </refpurpose> |
| 15 | + </refnamediv> |
| 16 | + <refsynopsisdiv> |
| 17 | + <refsynopsisdivinfo> |
| 18 | + <date>1998-09-27</date> |
| 19 | + </refsynopsisdivinfo> |
| 20 | + <synopsis> |
| 21 | +ABORT [ TRANSACTION | WORK ] |
| 22 | + </synopsis> |
23 | 23 |
|
24 | | -<REFSECT2 ID="R2-SQL-ABORT-1"> |
25 | | -<REFSECT2INFO> |
26 | | -<DATE>1998-09-27</DATE> |
27 | | -</REFSECT2INFO> |
28 | | -<TITLE> |
29 | | -Inputs |
30 | | -</TITLE> |
31 | | -<PARA> |
32 | | -None. |
33 | | -</para> |
| 24 | + <refsect2 id="R2-SQL-ABORT-1"> |
| 25 | + <refsect2info> |
| 26 | + <date>1998-09-27</date> |
| 27 | + </refsect2info> |
| 28 | + <title> |
| 29 | + Inputs |
| 30 | + </title> |
34 | 31 |
|
35 | | -</REFSECT2> |
| 32 | + <para> |
| 33 | + None. |
| 34 | + </para> |
| 35 | + </refsect2> |
36 | 36 |
|
37 | | -<REFSECT2 ID="R2-SQL-ABORT-2"> |
38 | | -<REFSECT2INFO> |
39 | | -<DATE>1998-09-27</DATE> |
40 | | -</REFSECT2INFO> |
41 | | -<TITLE> |
42 | | -Outputs |
43 | | -</TITLE> |
44 | | -<PARA> |
| 37 | + <refsect2 id="R2-SQL-ABORT-2"> |
| 38 | + <refsect2info> |
| 39 | + <date>1998-09-27</date> |
| 40 | + </refsect2info> |
| 41 | + <title> |
| 42 | + Outputs |
| 43 | + </title> |
45 | 44 |
|
46 | | -<VARIABLELIST> |
47 | | -<VARLISTENTRY> |
48 | | -<TERM> |
49 | | - ABORT |
50 | | -</TERM> |
51 | | -<LISTITEM> |
52 | | -<PARA> |
53 | | - Message returned if successful. |
54 | | -</para> |
55 | | -</listitem> |
56 | | -</VARLISTENTRY> |
57 | | -<VARLISTENTRY> |
58 | | -<TERM> |
| 45 | + <para> |
| 46 | + |
| 47 | + <variablelist> |
| 48 | + <varlistentry> |
| 49 | + <term><computeroutput> |
| 50 | +ABORT |
| 51 | + </computeroutput></term> |
| 52 | + <listitem> |
| 53 | + <para> |
| 54 | +Message returned if successful. |
| 55 | + </para> |
| 56 | + </listitem> |
| 57 | + </varlistentry> |
| 58 | + <varlistentry> |
| 59 | + <term><computeroutput> |
59 | 60 | NOTICE: UserAbortTransactionBlock and not in in-progress state |
60 | 61 | ABORT |
61 | | -</TERM> |
62 | | -<LISTITEM> |
63 | | -<PARA> |
64 | | -If there is not any transaction currently in progress. |
65 | | -</para> |
66 | | -</listitem> |
67 | | -</VARLISTENTRY> |
68 | | -</VARIABLELIST> |
69 | | -</para> |
70 | | -</REFSECT2> |
71 | | -</REFSYNOPSISDIV> |
| 62 | + </computeroutput></term> |
| 63 | + <listitem> |
| 64 | + <para> |
| 65 | +If there is not any transaction currently in progress. |
| 66 | +</para> |
| 67 | +</listitem> |
| 68 | + </varlistentry> |
| 69 | + </variablelist> |
| 70 | +</para> |
| 71 | + </refsect2> |
| 72 | + </refsynopsisdiv> |
72 | 73 |
|
73 | | -<REFSECT1 ID="R1-SQL-ABORT-1"> |
74 | | -<REFSECT1INFO> |
75 | | -<DATE>1998-09-27</DATE> |
76 | | -</REFSECT1INFO> |
77 | | -<TITLE> |
78 | | -Description |
79 | | -</TITLE> |
80 | | -<PARA> |
| 74 | + <refsect1 id="R1-SQL-ABORT-1"> |
| 75 | + <refsect1info> |
| 76 | + <date>1998-09-27</date> |
| 77 | + </refsect1info> |
| 78 | + <title> |
| 79 | +Description |
| 80 | + </title> |
| 81 | + <para> |
81 | 82 | <command>ABORT</command> rolls back the current transaction and causes |
82 | 83 | all the updates made by the transaction to be discarded. |
83 | | -This command is identical |
84 | | -in behavior to the <acronym>SQL92</acronym> command <command>ROLLBACK</command>, |
85 | | -and is present only for historical reasons. |
86 | | -</para> |
87 | | -<REFSECT2 ID="R2-SQL-ABORT-3"> |
88 | | -<REFSECT2INFO> |
89 | | -<DATE>1998-09-27</DATE> |
90 | | -</REFSECT2INFO> |
91 | | -<TITLE> |
92 | | -Notes |
93 | | -</TITLE> |
94 | | -<para> |
95 | | -Use the<command>COMMIT</command> statement to successfully |
96 | | - terminate a transaction. |
97 | | -</para> |
98 | | -</refsect2> |
99 | | -</REFSECT1> |
| 84 | +This command is identical |
| 85 | +in behavior to the <acronym>SQL92</acronym> command <command>ROLLBACK</command>, |
| 86 | +and is present only for historical reasons. |
| 87 | +</para> |
| 88 | + <refsect2 id="R2-SQL-ABORT-3"> |
| 89 | + <refsect2info> |
| 90 | + <date>1998-09-27</date> |
| 91 | + </refsect2info> |
| 92 | + <title> |
| 93 | +Notes |
| 94 | + </title> |
| 95 | +<para> |
| 96 | + Use<command>COMMIT</command> to successfully |
| 97 | +terminate a transaction. |
| 98 | +</para> |
| 99 | +</refsect2> |
| 100 | + </refsect1> |
100 | 101 |
|
101 | | -<REFSECT1 ID="R1-SQL-ABORT-2"> |
102 | | -<TITLE> |
103 | | -Usage |
104 | | -</TITLE> |
105 | | -<PARA> |
106 | | -<ProgramListing> |
107 | | ---To abort all changes |
108 | | --- |
| 102 | + <refsect1 id="R1-SQL-ABORT-2"> |
| 103 | + <title> |
| 104 | + Usage |
| 105 | + </title> |
| 106 | + <para> |
| 107 | + To abort all changes: |
| 108 | + <programlisting> |
109 | 109 | ABORT WORK; |
110 | | -</ProgramListing> |
111 | | -</para> |
| 110 | + </programlisting> |
| 111 | + </para> |
| 112 | + |
| 113 | + </refsect1> |
112 | 114 |
|
113 | | -</REFSECT1> |
| 115 | + <refsect1 id="R1-SQL-ABORT-3"> |
| 116 | + <title> |
| 117 | + Compatibility |
| 118 | + </title> |
114 | 119 |
|
115 | | -<REFSECT1 ID="R1-SQL-ABORT-3"> |
116 | | -<TITLE> |
117 | | -Compatibility |
118 | | -</TITLE> |
| 120 | + <refsect2 id="R2-SQL-ABORT-4"> |
| 121 | + <refsect2info> |
| 122 | + <date>1998-09-27</date> |
| 123 | + </refsect2info> |
| 124 | + <title> |
| 125 | + SQL92 |
| 126 | + </title> |
| 127 | + <para> |
| 128 | + This command is a <productname>Postgres</productname> extension present |
| 129 | + for historical reasons. <command>ROLLBACK</command> is the <acronym>SQL92</acronym> |
| 130 | + equivalent command. |
| 131 | + </para> |
| 132 | + </refsect2> |
| 133 | + </refsect1> |
119 | 134 |
|
120 | | -<REFSECT2 ID="R2-SQL-ABORT-4"> |
121 | | -<REFSECT2INFO> |
122 | | -<DATE>1998-09-27</DATE> |
123 | | -</REFSECT2INFO> |
124 | | -<TITLE> |
125 | | -SQL92 |
126 | | -</TITLE> |
127 | | -<para> |
128 | | -This command is a <productname>Postgres</productname> extension present |
129 | | -for historical reasons. <command>ROLLBACK</command> is the <acronym>SQL92</acronym> |
130 | | -equivalent command. |
131 | | -</PARA> |
132 | | -</refsect2> |
133 | | -</refsect1> |
| 135 | +</refentry> |
134 | 136 |
|
135 | | -</REFENTRY> |
| 137 | +<!-- Keep this comment at the end of the file |
| 138 | +Local variables: |
| 139 | +mode: sgml |
| 140 | +sgml-omittag:nil |
| 141 | +sgml-shorttag:t |
| 142 | +sgml-minimize-attributes:nil |
| 143 | +sgml-always-quote-attributes:t |
| 144 | +sgml-indent-step:1 |
| 145 | +sgml-indent-data:t |
| 146 | +sgml-parent-document:nil |
| 147 | +sgml-default-dtd-file:"../reference.ced" |
| 148 | +sgml-exposed-tags:nil |
| 149 | +sgml-local-catalogs:"/usr/lib/sgml/catalog" |
| 150 | +sgml-local-ecat-files:nil |
| 151 | +End: |
| 152 | +--> |