JavaScript Editor Javascript debugger     Website design 


Commit pending updates to the SESAM database ()
bool 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.

Return Values

Returns TRUE on success or FALSE on failure.


Example 2208. Committing an update to the SESAM database

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