★ wanayoo — archive 1999 http://fr.php.net/manual/en/function.sesam-commit.phpNouvelle recherche | Portail wanayoo
PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<sesam_affected_rowssesam_connect>
view the version of this page
Last updated: Mon, 06 Sep 2004

sesam_commit

(PHP 3 CVS only)

sesam_commit --  Commit pending updates to the SESAM database

Description

bool sesam_commit ( void )

Returns: TRUE on success, FALSE on errors

sesam_commit() commits any pending updates to the database.

Note that there is no "auto-commit" feature as in other databases, as it could lead to accidental data loss. Uncommitted data at the end of the current script (or when calling sesam_disconnect()) will be discarded by an implied sesam_rollback() call.

See also: sesam_rollback().

Example 1. Committing an update to the SESAM database

<?php
if (sesam_connect ("mycatalog", "myschema", "otto")) {
   if (!
sesam_execimm ("INSERT INTO mytable VALUES (*, 'Small Test', <0, 8, 15>)"))
       die(
"insert failed");
   if (!
sesam_commit())
       die(
"commit failed");
}
?>



add a note add a note User Contributed Notes
sesam_commit
There are no user contributed notes for this page.

<sesam_affected_rowssesam_connect>
 Last updated: Mon, 06 Sep 2004
show source | credits | sitemap | contact | advertising | mirror sites 
Copyright © 2001-2004 The PHP Group
All rights reserved.
This mirror generously provided by: nexen.net
Last updated: Sat Sep 18 05:21:38 2004 CEST