mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-20 19:08:54 +00:00

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@277030 c90b9560-bf6c-de11-be94-00142212c4b1
94 lines
2.6 KiB
XML
94 lines
2.6 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision: 1.10 $ -->
|
|
<refentry xml:id="function.ingres-autocommit" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>ingres_autocommit</refname>
|
|
<refpurpose>Switch autocommit on or off</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>bool</type><methodname>ingres_autocommit</methodname>
|
|
<methodparam><type>resource</type><parameter>link</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
<function>ingres_autocommit</function> is called before opening a
|
|
transaction (before the first call to
|
|
<function>ingres_query</function> or just after a call to
|
|
<function>ingres_rollback</function> or
|
|
<function>ingres_commit</function>) to switch the
|
|
autocommit mode of the server on or off (when the script begins
|
|
the autocommit mode is off).
|
|
</para>
|
|
<para>
|
|
When autocommit mode is on, every query is automatically
|
|
committed by the server, as if <function>ingres_commit</function>
|
|
was called after every call to <function>ingres_query</function>.
|
|
To see if autocommit is enabled use,
|
|
<function>ingres_autocommit_state</function>.
|
|
</para>
|
|
<para>
|
|
By default Ingres will rollback any uncommitted transactions at the end of
|
|
a request. Use this function or <function>ingres_commit</function> to
|
|
ensure your data is committed to the database.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>link</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
The connection link identifier
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
&return.success;
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member><function>ingres_autocommit_state</function></member>
|
|
<member><function>ingres_query</function></member>
|
|
<member><function>ingres_rollback</function></member>
|
|
<member><function>ingres_commit</function></member>
|
|
</simplelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"../../../../manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|