mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-29 23:38:56 +00:00

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@228915 c90b9560-bf6c-de11-be94-00142212c4b1
88 lines
2.1 KiB
XML
88 lines
2.1 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision: 1.5 $ -->
|
|
<refentry id="function.sesam-rollback">
|
|
<refnamediv>
|
|
<refname>sesam_rollback</refname>
|
|
<refpurpose>Discard any pending updates to the SESAM database</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>bool</type><methodname>sesam_rollback</methodname>
|
|
<void/>
|
|
</methodsynopsis>
|
|
<para>
|
|
<function>sesam_rollback</function> discards any pending updates
|
|
to the database. Also affected are result cursors and result
|
|
descriptors.
|
|
</para>
|
|
<para>
|
|
At the end of each script, and as part of the
|
|
<function>sesam_disconnect</function> function, an implied
|
|
<function>sesam_rollback</function> is executed, discarding any
|
|
pending changes to the database.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
&return.success;
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title>Discarding an update to the SESAM database</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
if (sesam_connect ("mycatalog", "myschema", "otto")) {
|
|
if (sesam_execimm ("INSERT INTO mytable VALUES (*, 'Small Test', <0, 8, 15>)")
|
|
&& sesam_execimm ("INSERT INTO othertable VALUES (*, 'Another Test', 1)")) {
|
|
sesam_commit();
|
|
} else {
|
|
sesam_rollback();
|
|
}
|
|
}
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member><function>sesam_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
|
|
-->
|