<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/ecpg.sgml,v 1.18 2000/12/22 21:51:57 petere Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/ecpg.sgml,v 1.19 2001/08/24 18:08:25 momjian Exp $
-->
<chapter id="ecpg">
</listitem>
</varlistentry>
- <!--WARNING: FROM HERE ON THE TEXT IS OUTDATED!-->
- <varlistentry>
- <term>Open cursor statement</term>
- <listitem>
- <para>
- An open cursor statement looks like:
- <programlisting>
-exec sql open <replaceable>cursor</replaceable>;
- </programlisting>
- and is ignore and not copied from the output.
- </para>
- </listitem>
- </varlistentry>
-
- <varlistentry>
- <term>Commit statement</term>
- <listitem>
- <para>
- A commit statement looks like
- <programlisting>
-exec sql commit;
- </programlisting>
- and is translated on the output to
- <programlisting>
-ECPGcommit(__LINE__);
- </programlisting>
- </para>
- </listitem>
- </varlistentry>
-
- <varlistentry>
- <term>Rollback statement</term>
- <listitem>
- <para>
- A rollback statement looks like
- <programlisting>
-exec sql rollback;
- </programlisting>
- and is translated on the output to
- <programlisting>
-ECPGrollback(__LINE__);
- </programlisting>
- </para>
- </listitem>
- </varlistentry>
-
- <!--STARTING HERE IT IS OKAY AGAIN!-->
<varlistentry>
<term>Other statements</term>
<listitem>