mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-28 14:58:55 +00:00

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@78496 c90b9560-bf6c-de11-be94-00142212c4b1
73 lines
2 KiB
XML
73 lines
2 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision: 1.2 $ -->
|
|
<!-- splitted from ./en/functions/sesam.xml, last change in rev 1.1 -->
|
|
<refentry id="function.sesam-rollback">
|
|
<refnamediv>
|
|
<refname>sesam_rollback</refname>
|
|
<refpurpose>
|
|
Discard any pending updates to the SESAM database
|
|
</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Description</title>
|
|
<methodsynopsis>
|
|
<type>bool</type><methodname>sesam_rollback</methodname>
|
|
<void/>
|
|
</methodsynopsis>
|
|
<para>
|
|
Returns: &true; on success,
|
|
&false; on errors
|
|
</para>
|
|
<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>
|
|
<para>
|
|
See also: <function>sesam_commit</function>.
|
|
<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>
|
|
</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
|
|
-->
|