head	1.21;
access;
symbols
	REL9_0_0:1.21
	REL9_1_ALPHA1:1.21
	REL9_0_RC1:1.21
	REL9_0_BETA4:1.21
	REL9_0_STABLE:1.21.0.2
	REL9_0_BETA3:1.21
	REL9_0_BETA2:1.21
	REL7_4_29:1.16
	REL8_0_25:1.18
	REL8_1_21:1.18
	REL8_2_17:1.19
	REL8_3_11:1.19
	REL8_4_4:1.20
	REL9_0_BETA1:1.21
	REL9_0_ALPHA5_BRANCH:1.20.0.12
	REL9_0_ALPHA5:1.20
	REL7_4_28:1.16
	REL8_0_24:1.18
	REL8_1_20:1.18
	REL8_2_16:1.19
	REL8_3_10:1.19
	REL8_4_3:1.20
	REL9_0_ALPHA4:1.20
	REL9_0_ALPHA4_BRANCH:1.20.0.10
	REL8_5_ALPHA3:1.20
	REL8_5_ALPHA3_BRANCH:1.20.0.8
	REL7_4_27:1.16
	REL8_0_23:1.18
	REL8_1_19:1.18
	REL8_2_15:1.19
	REL8_3_9:1.19
	REL8_4_2:1.20
	REL8_5_ALPHA2:1.20
	REL8_5_ALPHA2_BRANCH:1.20.0.6
	REL7_4_26:1.16
	REL8_0_22:1.18
	REL8_1_18:1.18
	REL8_2_14:1.19
	REL8_3_8:1.19
	REL8_4_1:1.20
	REL8_5_ALPHA1:1.20
	REL8_5_ALPHA1_BRANCH:1.20.0.4
	REL8_4_STABLE:1.20.0.2
	REL8_4_0:1.20
	REL8_4_RC2:1.20
	REL8_4_RC1:1.20
	REL8_4_BETA2:1.20
	REL8_4_BETA1:1.20
	REL7_4_25:1.16
	REL8_0_21:1.18
	REL8_1_17:1.18
	REL8_2_13:1.19
	REL8_3_7:1.19
	REL7_4_24:1.16
	REL8_0_20:1.18
	REL8_1_16:1.18
	REL8_2_12:1.19
	REL8_3_6:1.19
	REL7_4_23:1.16
	REL8_0_19:1.18
	REL8_1_15:1.18
	REL8_2_11:1.19
	REL8_3_5:1.19
	REL7_4_22:1.16
	REL8_0_18:1.18
	REL8_1_14:1.18
	REL8_2_10:1.19
	REL8_3_4:1.19
	REL7_4_21:1.16
	REL8_0_17:1.18
	REL8_1_13:1.18
	REL8_2_9:1.19
	REL8_3_3:1.19
	REL7_4_20:1.16
	REL8_0_16:1.18
	REL8_1_12:1.18
	REL8_2_8:1.19
	REL8_3_2:1.19
	REL8_2_7:1.19
	REL8_3_1:1.19
	REL8_3_STABLE:1.19.0.4
	REL8_3_0:1.19
	REL8_3_RC2:1.19
	REL7_3_21:1.13
	REL7_4_19:1.16
	REL8_0_15:1.18
	REL8_1_11:1.18
	REL8_2_6:1.19
	REL8_3_RC1:1.19
	REL8_3_BETA4:1.19
	REL8_3_BETA3:1.19
	REL8_3_BETA2:1.19
	REL8_3_BETA1:1.19
	REL7_3_20:1.13
	REL7_4_18:1.16
	REL8_0_14:1.18
	REL8_1_10:1.18
	REL8_2_5:1.19
	REL7_3_19:1.13
	REL7_4_17:1.16
	REL8_0_13:1.18
	REL8_1_9:1.18
	REL8_2_4:1.19
	REL8_0_12:1.18
	REL8_1_8:1.18
	REL8_2_3:1.19
	REL7_3_18:1.13
	REL7_4_16:1.16
	REL8_0_11:1.18
	REL8_1_7:1.18
	REL8_2_2:1.19
	REL8_0_10:1.18
	REL8_1_6:1.18
	REL8_2_1:1.19
	REL7_4_15:1.16
	REL7_3_17:1.13
	REL8_2_STABLE:1.19.0.2
	REL8_2_0:1.19
	REL8_2_RC1:1.19
	REL8_2_BETA3:1.19
	REL8_2_BETA2:1.19
	REL8_1_5:1.18
	REL8_0_9:1.18
	REL7_4_14:1.16
	REL7_3_16:1.13
	REL8_2_BETA1:1.19
	REL7_3_15:1.13
	REL7_4_13:1.16
	REL8_0_8:1.18
	REL8_1_4:1.18
	REL7_3_14:1.13
	REL7_4_12:1.16
	REL8_0_7:1.18
	REL8_1_3:1.18
	REL7_3_13:1.13
	REL7_4_11:1.16
	REL8_0_6:1.18
	REL8_1_2:1.18
	REL7_3_12:1.13
	REL7_4_10:1.16
	REL8_0_5:1.18
	REL8_1_1:1.18
	REL8_1_STABLE:1.18.0.6
	REL8_1_0:1.18
	REL8_1_0RC1:1.18
	REL8_1_0BETA4:1.18
	REL8_1_0BETA3:1.18
	REL7_3_11:1.13
	REL7_4_9:1.16
	REL8_0_4:1.18
	REL8_1_0BETA2:1.18
	REL8_1_0BETA1:1.18
	REL7_2_8:1.10
	REL7_3_10:1.13
	REL7_4_8:1.16
	REL8_0_3:1.18
	REL8_0_2:1.18
	REL7_2_7:1.10
	REL7_3_9:1.13
	REL7_4_7:1.16
	REL8_0_1:1.18
	REL8_0_STABLE:1.18.0.4
	REL8_0_0:1.18.0.2
	REL8_0_0RC5:1.18
	REL8_0_0RC4:1.18
	REL8_0_0RC3:1.18
	REL8_0_0RC2:1.18
	REL8_0_0RC1:1.18
	REL8_0_0BETA5:1.18
	REL8_0_0BETA4:1.18
	REL7_4_6:1.16
	REL7_3_8:1.13
	REL7_2_6:1.10
	REL8_0_0BETA3:1.18
	REL8_0_0BETA2:1.18
	REL7_2_5:1.10
	REL7_4_5:1.16
	REL7_3_7:1.13
	REL7_4_4:1.16
	REL8_0_0BETA1:1.18
	REL7_4_3:1.16
	REL7_4_2:1.16
	REL7_3_6:1.13
	REL7_4_1:1.16
	REL7_3_5:1.13
	REL7_4:1.16
	REL7_4_RC2:1.16
	REL7_4_STABLE:1.16.0.2
	REL7_4_RC1:1.16
	REL7_4_BETA5:1.16
	REL7_4_BETA4:1.16
	REL7_4_BETA3:1.16
	REL7_4_BETA2:1.14
	WIN32_DEV:1.14.0.2
	REL7_4_BETA1:1.14
	REL7_3_4:1.13
	REL7_3_2:1.13
	REL7_2_4:1.10
	REL7_3_STABLE:1.13.0.2
	REL7_2_3:1.10
	REL7_2_STABLE:1.10.0.2
	REL7_2:1.10
	REL7_2_RC2:1.10
	REL7_2_RC1:1.10
	REL7_2_BETA5:1.10
	REL7_2_BETA4:1.10
	REL7_2_BETA3:1.9
	REL7_2_BETA2:1.9
	REL7_2_BETA1:1.9
	REL7_1_2:1.8
	REL7_1_STABLE:1.8.0.2
	REL7_1_BETA:1.7
	REL7_1_BETA3:1.8
	REL7_1_BETA2:1.8
	REL7_1:1.8
	REL7_0_PATCHES:1.7.0.2
	REL7_0:1.7
	REL6_5_PATCHES:1.5.0.2
	REL6_5:1.5
	REL6_4:1.2.0.2;
locks; strict;
comment	@# @;


1.21
date	2010.04.03.07.23.02;	author petere;	state Exp;
branches;
next	1.20;

1.20
date	2008.11.14.10.22.47;	author petere;	state Exp;
branches;
next	1.19;

1.19
date	2006.09.16.00.30.19;	author momjian;	state Exp;
branches;
next	1.18;

1.18
date	2004.08.01.17.32.13;	author tgl;	state Exp;
branches;
next	1.17;

1.17
date	2003.11.29.19.51.39;	author pgsql;	state Exp;
branches;
next	1.16;

1.16
date	2003.09.09.18.28.53;	author tgl;	state Exp;
branches;
next	1.15;

1.15
date	2003.08.31.17.32.24;	author petere;	state Exp;
branches;
next	1.14;

1.14
date	2003.04.26.23.56.51;	author petere;	state Exp;
branches
	1.14.2.1;
next	1.13;

1.13
date	2002.05.18.15.44.47;	author petere;	state Exp;
branches;
next	1.12;

1.12
date	2002.04.21.19.02.39;	author thomas;	state Exp;
branches;
next	1.11;

1.11
date	2002.03.06.06.48.05;	author momjian;	state Exp;
branches;
next	1.10;

1.10
date	2001.12.08.03.24.39;	author thomas;	state Exp;
branches;
next	1.9;

1.9
date	2001.09.03.12.57.50;	author petere;	state Exp;
branches;
next	1.8;

1.8
date	2000.12.25.23.15.26;	author petere;	state Exp;
branches;
next	1.7;

1.7
date	2000.01.29.16.58.27;	author petere;	state Exp;
branches;
next	1.6;

1.6
date	99.07.22.15.09.14;	author thomas;	state Exp;
branches;
next	1.5;

1.5
date	99.07.06.17.16.42;	author thomas;	state Exp;
branches;
next	1.4;

1.4
date	99.06.14.07.37.04;	author thomas;	state Exp;
branches;
next	1.3;

1.3
date	98.12.29.02.24.46;	author thomas;	state Exp;
branches;
next	1.2;

1.2
date	98.09.25.13.42.41;	author thomas;	state Exp;
branches;
next	1.1;

1.1
date	98.09.01.15.53.08;	author thomas;	state Exp;
branches;
next	;

1.14.2.1
date	2003.09.07.04.36.46;	author momjian;	state Exp;
branches;
next	;


desc
@@


1.21
log
@Remove unnecessary xref endterm attributes and title ids

The endterm attribute is mainly useful when the toolchain does not support
automatic link target text generation for a particular situation.  In  the
past, this was required by the man page tools for all reference page links,
but that is no longer the case, and it now actually gets in the way of
proper automatic link text generation.  The only remaining use cases are
currently xrefs to refsects.
@
text
@<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/rollback.sgml,v 1.20 2008/11/14 10:22:47 petere Exp $
PostgreSQL documentation
-->

<refentry id="SQL-ROLLBACK">
 <refmeta>
  <refentrytitle>ROLLBACK</refentrytitle>
  <manvolnum>7</manvolnum>
  <refmiscinfo>SQL - Language Statements</refmiscinfo>
 </refmeta>

 <refnamediv>
  <refname>ROLLBACK</refname>
  <refpurpose>abort the current transaction</refpurpose>
 </refnamediv>

 <indexterm zone="sql-rollback">
  <primary>ROLLBACK</primary>
 </indexterm>

 <refsynopsisdiv>
<synopsis>
ROLLBACK [ WORK | TRANSACTION ]
</synopsis>
 </refsynopsisdiv>

 <refsect1>
  <title>Description</title>

  <para>
   <command>ROLLBACK</command> rolls back the current transaction and causes
   all the updates made by the transaction to be discarded.
  </para>
 </refsect1>

 <refsect1>
  <title>Parameters</title>

  <variablelist>
   <varlistentry>
    <term><literal>WORK</literal></term>
    <term><literal>TRANSACTION</literal></term>
    <listitem>
     <para>
      Optional key words. They have no effect.
     </para>
    </listitem>
   </varlistentry>
  </variablelist>
 </refsect1>

 <refsect1>
  <title>Notes</title>

  <para>
   Use <xref linkend="SQL-COMMIT"> to
   successfully terminate a transaction.
  </para>

  <para>
   Issuing <command>ROLLBACK</> when not inside a transaction does
   no harm, but it will provoke a warning message.
  </para>
 </refsect1>

 <refsect1>
  <title>Examples</title>

  <para>
   To abort all changes:
<programlisting>
ROLLBACK;
</programlisting>
  </para>
 </refsect1>

 <refsect1>
  <title>Compatibility</title>

  <para>
   The SQL standard only specifies the two forms
   <literal>ROLLBACK</literal> and <literal>ROLLBACK
   WORK</literal>. Otherwise, this command is fully conforming.
  </para>
 </refsect1>

 <refsect1>
  <title>See Also</title>

  <simplelist type="inline">
   <member><xref linkend="sql-begin"></member>
   <member><xref linkend="sql-commit"></member>
   <member><xref linkend="sql-rollback-to"></member>
  </simplelist>
 </refsect1>
</refentry>
@


1.20
log
@Set SQL man pages to be section 7 by default, and only transform them to
another section if required by the platform (instead of the old way of
building them in section "l" and always transforming them to the
platform-specific section).

This speeds up the installation on common platforms, and it avoids some
funny business with the man page tools and build process.
@
text
@d2 1
a2 1
$PostgreSQL: pgsql/doc/src/sgml/ref/rollback.sgml,v 1.19 2006/09/16 00:30:19 momjian Exp $
d8 1
a8 1
  <refentrytitle id="SQL-ROLLBACK-TITLE">ROLLBACK</refentrytitle>
d57 1
a57 1
   Use <xref linkend="SQL-COMMIT" endterm="SQL-COMMIT-TITLE"> to
d92 3
a94 3
   <member><xref linkend="sql-begin" endterm="sql-begin-title"></member>
   <member><xref linkend="sql-commit" endterm="sql-commit-title"></member>
   <member><xref linkend="sql-rollback-to" endterm="sql-rollback-to-title"></member>
@


1.19
log
@Remove emacs info from footer of SGML files.
@
text
@d2 1
a2 1
$PostgreSQL: pgsql/doc/src/sgml/ref/rollback.sgml,v 1.18 2004/08/01 17:32:13 tgl Exp $
d9 1
@


1.18
log
@Some mop-up work for savepoints (nested transactions).  Store a small
number of active subtransaction XIDs in each backend's PGPROC entry,
and use this to avoid expensive probes into pg_subtrans during
TransactionIdIsInProgress.  Extend EOXactCallback API to allow add-on
modules to get control at subxact start/end.  (This is deliberately
not compatible with the former API, since any uses of that API probably
need manual review anyway.)  Add basic reference documentation for
SAVEPOINT and related commands.  Minor other cleanups to check off some
of the open issues for subtransactions.
Alvaro Herrera and Tom Lane.
@
text
@d2 1
a2 1
$PostgreSQL: pgsql-server/doc/src/sgml/ref/rollback.sgml,v 1.17 2003/11/29 19:51:39 pgsql Exp $
a96 17

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:nil
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
sgml-parent-document:nil
sgml-default-dtd-file:"../reference.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:"/usr/lib/sgml/catalog"
sgml-local-ecat-files:nil
End:
-->
@


1.17
log
@
$Header: -> $PostgreSQL Changes ...
@
text
@d2 1
a2 1
$PostgreSQL: /cvsroot/pgsql-server/doc/src/sgml/ref/rollback.sgml,v 1.16 2003/09/09 18:28:53 tgl Exp $
d93 1
@


1.16
log
@Remove a bunch of content-free Diagnostics sections, as per previous
discussion.  (Still have some work to do editing the remainder.)
@
text
@d2 1
a2 1
$Header: /cvsroot/pgsql-server/doc/src/sgml/ref/rollback.sgml,v 1.15 2003/08/31 17:32:24 petere Exp $
@


1.15
log
@Add/edit index entries.
@
text
@d2 1
a2 1
$Header: /cvsroot/pgsql-server/doc/src/sgml/ref/rollback.sgml,v 1.14 2003/04/26 23:56:51 petere Exp $
a52 24
  <title>Diagnostics</title>
	
  <variablelist>
   <varlistentry>
    <term><computeroutput>ROLLBACK</computeroutput></term>
    <listitem>
     <para>
      Message returned if successful.
     </para>
    </listitem>
   </varlistentry>
     
   <varlistentry>
    <term><computeroutput>WARNING:  ROLLBACK: no transaction in progress</computeroutput></term>
    <listitem>
     <para>
      If there is not any transaction currently in progress.
     </para>
    </listitem>
   </varlistentry>
  </variablelist>
 </refsect1>

 <refsect1>
d59 5
d85 9
@


1.14
log
@Editing of more reference pages.
@
text
@d2 1
a2 1
$Header: /cvsroot/pgsql-server/doc/src/sgml/ref/rollback.sgml,v 1.13 2002/05/18 15:44:47 petere Exp $
d16 4
@


1.14.2.1
log
@Update this branch to match CVS head, includes WIN32 improvements.
@
text
@d2 1
a2 1
$Header: /cvsroot/pgsql-server/doc/src/sgml/ref/rollback.sgml,v 1.15 2003/08/31 17:32:24 petere Exp $
a15 4

 <indexterm zone="sql-rollback">
  <primary>ROLLBACK</primary>
 </indexterm>
@


1.13
log
@Revise command completion tags as per hackers message on 20 March.
@
text
@d2 1
a2 1
$Header: /cvsroot/pgsql/doc/src/sgml/ref/rollback.sgml,v 1.12 2002/04/21 19:02:39 thomas Exp $
d11 1
d13 2
a14 6
  <refname>
   ROLLBACK
  </refname>
  <refpurpose>
   abort the current transaction
  </refpurpose>
d16 1
d18 1
a18 4
  <refsynopsisdivinfo>
   <date>1999-07-20</date>
  </refsynopsisdivinfo>
  <synopsis>
d20 1
a20 48
  </synopsis>

  <refsect2 id="R2-SQL-ROLLBACK-1">
   <refsect2info>
    <date>1998-09-24</date>
   </refsect2info>
   <title>
    Inputs
   </title>
   <para>
    None.
   </para>
  </refsect2>

  <refsect2 id="R2-SQL-ROLLBACK-2">
   <refsect2info>
    <date>1998-09-24</date>
   </refsect2info>
   <title>
    Outputs
   </title>
   <para>
	
    <variablelist>
     <varlistentry>
      <term><computeroutput>
ROLLBACK
       </computeroutput></term>
      <listitem>
       <para>
	Message returned if successful.
       </para>
      </listitem>
     </varlistentry>
     
     <varlistentry>
      <term><computeroutput>
WARNING:  ROLLBACK: no transaction in progress
       </computeroutput></term>
      <listitem>
       <para>
	If there is not any transaction currently in progress.
       </para>
      </listitem>
     </varlistentry>
    </variablelist>
   </para>
  </refsect2>
d23 2
a24 7
 <refsect1 id="R1-SQL-ROLLBACK-1">
  <refsect1info>
   <date>1998-09-24</date>
  </refsect1info>
  <title>
   Description
  </title>
d30 1
d32 38
a69 14
  <refsect2 id="R2-SQL-ROLLBACK-3">
   <refsect2info>
    <date>1998-09-24</date>
   </refsect2info>
   <title>
    Notes
   </title>
   <para>
    Use <xref linkend="SQL-COMMIT" endterm="SQL-COMMIT-TITLE">
    to successfully terminate a transaction.
    <xref linkend="SQL-ABORT" endterm="SQL-ABORT-TITLE"> is a
    synonym for <command>ROLLBACK</command>.
   </para>
  </refsect2>
d72 12
a83 4
 <refsect1 id="R1-SQL-ROLLBACK-2">
  <title>
   Usage
  </title>
d86 3
a88 4

   <programlisting>
ROLLBACK WORK;
   </programlisting>
d92 8
a99 17
 <refsect1 id="R1-SQL-ROLLBACK-3">
  <title>
   Compatibility
  </title>

  <refsect2 id="R2-SQL-ROLLBACK-4">
   <refsect2info>
    <date>1998-09-24</date>
   </refsect2info>
   <title>
    SQL92
   </title>
   <para>
    <acronym>SQL92</acronym> only specifies the two forms <literal>ROLLBACK</literal>
    and <literal>ROLLBACK WORK</literal>. Otherwise full compatibility.
   </para>
  </refsect2>
@


1.12
log
@Augment the date/time examples in the User's Guide to reflect the newer
 capabilities of specifying time zones as intervals per SQL9x.
Put refentrytitle contents on the same line as the tag.
 Otherwise, leading whitespace is propagated into the product, which
 (at least) messes up the ToC layout.
Remove (some) docinfo tags containing dates. Best to omit if the dates
 are not accurate; maybe use CVS dates instead or leave them out.
@
text
@d2 1
a2 1
$Header: /cvsroot/pgsql/doc/src/sgml/ref/rollback.sgml,v 1.11 2002/03/06 06:48:05 momjian Exp $
d51 1
a51 1
ABORT
@


1.11
log
@Update reference pages for new INFO, NOTICE, WARNING elog() levels.
@
text
@d2 1
a2 1
$Header: /cvsroot/pgsql/doc/src/sgml/ref/rollback.sgml,v 1.10 2001/12/08 03:24:39 thomas Exp $
d8 1
a8 3
  <refentrytitle id="SQL-ROLLBACK-TITLE">
   ROLLBACK
  </refentrytitle>
@


1.10
log
@Use PostgreSQL consistantly throughout docs. Before, usage was split evenly
 between Postgres and PostgreSQL.
@
text
@d2 1
a2 1
$Header: /cvsroot/pgsql/doc/src/sgml/ref/rollback.sgml,v 1.9 2001/09/03 12:57:50 petere Exp $
d64 1
a64 1
NOTICE:  ROLLBACK: no transaction in progress
@


1.9
log
@Put some kind of grammatical uniformity in the <refpurpose> lines.
@
text
@d2 2
a3 2
$Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/sgml/ref/rollback.sgml,v 1.8 2000/12/25 23:15:26 petere Exp $
Postgres documentation
@


1.8
log
@Refine some things to create better looking man pages.
@
text
@d2 1
a2 1
$Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/sgml/ref/rollback.sgml,v 1.7 2000/01/29 16:58:27 petere Exp $
d18 1
a18 1
   Aborts the current transaction
@


1.7
log
@A few minor psql enhancements
Initdb help correction
Changed end/abort to commit/rollback and changed related notices
Commented out way old printing functions in libpq
Fixed a typo in alter table / alter column
@
text
@d2 1
a2 1
$Header: /usr/local/cvsroot/pgsql/doc/src/sgml/ref/rollback.sgml,v 1.6 1999/07/22 15:09:14 thomas Exp $
d98 1
a98 1
    Use <xref linkend="SQL-COMMIT-TITLE" endterm="SQL-COMMIT-TITLE">
d100 1
a100 1
    <xref linkend="SQL-ABORT-TITLE" endterm="SQL-ABORT-TITLE"> is a
@


1.6
log
@Complete merge of all old man page information.
ecpg reference page still needs formatting.
@
text
@d2 1
a2 1
$Header$
d64 1
a64 2
NOTICE:  UserAbortTransactionBlock and not in in-progress state
ABORT
a97 4
    The keywords WORK and TRANSACTION are noise and can be omitted.
   </para>

   <para>
d132 2
a133 2
    Full compatibility. The TRANSACTION keyword is a
    <productname>Postgres</productname> extension.
@


1.5
log
@Fix markup for docbook2man man page generation.
No big deal; fixed lots of other markup at the same time.
Bigest change: make sure there is no whitespace
 in front of <term> contents.
This will probably help the other output types too.
@
text
@d1 5
d23 1
a23 1
   <date>1998-09-24</date>
d105 2
a127 2
  <para>
  </para>
@


1.4
log
@Minor updates for release.
Split reference pages for CREATE TABLE AS and SELECT INTO to allow psgml
 (the emacs parser) to handle parsing.
@
text
@d4 1
a4 1
ROLLBACK
d10 1
a10 1
ROLLBACK
d47 3
a49 3
      <term>
       ABORT
      </term>
d58 4
a61 4
      <term>
       NOTICE:  UserAbortTransactionBlock and not in in-progress state
       ABORT
      </term>
d109 2
d112 1
a112 3
    --To abort all changes:
    --
    ROLLBACK WORK;
d132 1
a132 1
    Full compatibility. TRANSACTION is a
@


1.3
log
@Clean up to ensure tag completion as required by the newest versions
 of Norm's Modular Style Sheets and jade/docbook.
From Vince Vielhaber <vev@@michvhf.com>.
@
text
@d1 3
a3 3
<REFENTRY ID="SQL-ROLLBACK">
<REFMETA>
<REFENTRYTITLE>
d5 5
a9 5
</REFENTRYTITLE>
<REFMISCINFO>SQL - Language Statements</REFMISCINFO>
</REFMETA>
<REFNAMEDIV>
<REFNAME>
d11 33
a43 109
</REFNAME>
<REFPURPOSE>
Aborts the current transaction
</REFPURPOSE>
  </refnamediv>
<REFSYNOPSISDIV>
<REFSYNOPSISDIVINFO>
<DATE>1998-09-24</DATE>
</REFSYNOPSISDIVINFO>
<SYNOPSIS>
ROLLBACK [ WORK ]
</SYNOPSIS>

	<REFSECT2 ID="R2-SQL-ROLLBACK-1">
	  <REFSECT2INFO>
		<DATE>1998-09-24</DATE>
	  </REFSECT2INFO>
	  <TITLE>
		Inputs
	  </TITLE>
	  <PARA>
		None.
	  </para>
	</REFSECT2>

	<REFSECT2 ID="R2-SQL-ROLLBACK-2">
	  <REFSECT2INFO>
		<DATE>1998-09-24</DATE>
	  </REFSECT2INFO>
	  <TITLE>
		Outputs
	  </TITLE>
	  <PARA>
		
		<VARIABLELIST>
		  <VARLISTENTRY>
			<TERM>
			  ABORT
			</TERM>
			<LISTITEM>
			  <PARA>
				Message returned if successful.
			  </para>
			</listitem>
		  </VARLISTENTRY>
		  
		  <VARLISTENTRY>
			<TERM>
			  NOTICE:  UserAbortTransactionBlock and not in in-progress state
			  ABORT
			</TERM>
			<LISTITEM>
			  <PARA>
				If there is not any transaction currently in progress.
			  </para>
			</listitem>
		  </VARLISTENTRY>
		</VARIABLELIST>
	  </para>
	</REFSECT2>
  </REFSYNOPSISDIV>

  <REFSECT1 ID="R1-SQL-ROLLBACK-1">
	<REFSECT1INFO>
	  <DATE>1998-09-24</DATE>
	</REFSECT1INFO>
	<TITLE>
	  Description
	</TITLE>
	<PARA>
	  <command>ROLLBACK</command> rolls back the current transaction and causes
	  all the updates made by the transaction to be discarded.
	</para>
	<REFSECT2 ID="R2-SQL-ROLLBACK-3">
	  <REFSECT2INFO>
		<DATE>1998-09-24</DATE>
	  </REFSECT2INFO>
	  <TITLE>
		Notes
	  </TITLE>
	  <PARA>
		The keyword WORK is noise and can be omitted.
	  </para>  
	  <para>
		Use the <command>COMMIT</command> statement to successfully
		terminate a transaction.
	  </para>
	</refsect2>
  </REFSECT1>

  <REFSECT1 ID="R1-SQL-ROLLBACK-2">
	<TITLE>
	  Usage
	</TITLE>
	<PARA>
	  <ProgramListing>
		--To abort all changes:
		--
		ROLLBACK WORK;
	  </ProgramListing>
	</para>
  </REFSECT1>
  
  <REFSECT1 ID="R1-SQL-ROLLBACK-3">
	<TITLE>
	  Compatibility
	</TITLE>
	<PARA>
	</PARA>
d45 110
a154 13
	<REFSECT2 ID="R2-SQL-ROLLBACK-4">
	  <REFSECT2INFO>
		<DATE>1998-09-24</DATE>
	  </REFSECT2INFO>
	  <TITLE>
		SQL92
	  </TITLE>
	  <PARA>
		Full compatibility.
	  </para>
	</refsect2>
  </refsect1>
</REFENTRY>
@


1.2
log
@Cleanup markup and minor editing to prepare for first release.
@
text
@d15 1
d24 109
a132 101
<REFSECT2 ID="R2-SQL-ROLLBACK-1">
<REFSECT2INFO>
<DATE>1998-09-24</DATE>
</REFSECT2INFO>
<TITLE>
Inputs
</TITLE>
<PARA>
None.

</REFSECT2>

<REFSECT2 ID="R2-SQL-ROLLBACK-2">
<REFSECT2INFO>
<DATE>1998-09-24</DATE>
</REFSECT2INFO>
<TITLE>
Outputs
</TITLE>
<PARA>

<VARIABLELIST>
<VARLISTENTRY>
<TERM>
   ABORT
</TERM>
<LISTITEM>
<PARA>
          Message returned if successful.

<VARLISTENTRY>
<TERM>
NOTICE:  UserAbortTransactionBlock and not in in-progress state
ABORT
</TERM>
<LISTITEM>
<PARA>
          If there is not any transaction currently in progress.

</VARLISTENTRY>
</VARIABLELIST>

</REFSECT2>
</REFSYNOPSISDIV>

<REFSECT1 ID="R1-SQL-ROLLBACK-1">
<REFSECT1INFO>
<DATE>1998-09-24</DATE>
</REFSECT1INFO>
<TITLE>
Description
</TITLE>
<PARA>
   <command>ROLLBACK</command> rolls back the current transaction and causes
   all the updates made by the transaction to be discarded.

<REFSECT2 ID="R2-SQL-ROLLBACK-3">
<REFSECT2INFO>
<DATE>1998-09-24</DATE>
</REFSECT2INFO>
<TITLE>
Notes
</TITLE>
<PARA>
The keyword WORK is noise and can be omitted.

<para>
Use the <command>COMMIT</command> statement to successfully
 terminate a transaction.

</REFSECT1>

<REFSECT1 ID="R1-SQL-ROLLBACK-2">
<TITLE>
Usage
</TITLE>
<PARA>
<ProgramListing>
--To abort all changes:
--
ROLLBACK WORK;
</ProgramListing>

</REFSECT1>

<REFSECT1 ID="R1-SQL-ROLLBACK-3">
<TITLE>
Compatibility
</TITLE>
<PARA>
</PARA>

<REFSECT2 ID="R2-SQL-ROLLBACK-4">
<REFSECT2INFO>
<DATE>1998-09-24</DATE>
</REFSECT2INFO>
<TITLE>
SQL92
</TITLE>
<PARA>
    Full compatibility.
@


1.1
log
@Add new files from Oliver and Thomas.
@
text
@d17 1
a17 1
<DATE>1998-09-01</DATE>
d25 1
a25 1
<DATE>1998-09-01</DATE>
d37 1
a37 1
<DATE>1998-04-15</DATE>
d70 1
a70 1
<DATE>1998-04-15</DATE>
d76 1
a76 1
   ROLLBACK rolls back the current transaction and causes
d81 1
a81 1
<DATE>1998-04-15</DATE>
d90 2
a91 1
Use the COMMIT statement to successfully terminate a transaction.
d101 3
a103 3
   --To abort all changes:
   --
   ROLLBACK WORK;
d117 1
a117 1
<DATE>1998-04-15</DATE>
a124 20

<!--
<REPLACEABLE CLASS="PARAMETER">
</REPLACEABLE>
<ReturnValue></ReturnValue>
<PARA>
</PARA>
<VARIABLELIST>
<VARLISTENTRY>
<TERM>&bull;
</TERM>
<LISTITEM>
<PARA>
</PARA>
</LISTITEM>
</VARLISTENTRY>
</VARIABLELIST>
<PARA>
</PARA>
-->
@
