db_result_t db_commit_tx ( db_t  hdb,
db_flags_t  flags 
)

Commit a database's active transaction for the current thread.

Parameters:
hdb Database handle.
flags 
Returns:
On failure, one of the following error codes is set:
  • DB_EINVAL Could be caused by: invalid database handle, invalid flags parameter, invalid completion mode.
  • DB_ENOTX No such transaction found.

See also:
db_begin_tx, db_abort_tx, db_flush_tx,
get_db_error, clear_db_error, Error Handling


Copyright © 2005-2008 ITTIA®. All rights reserved.