#define AFGS_COMMIT_TRANSACTION con,
message   ) 
 

Value:

Allows to close a transaction opened.

While performing transactional operations, it is required to perform a last commit operation, to make changes permanent into the database. This last commit operation could be done by issuing the next piece of code:

Because this group of sentences are commonly used, this macro allows to write it in only one step. Here is an example:

 // previous AFGS module calls 

 AFGS_COMMIT_TRANSACTION(connection, "Unable to close the transaction");
 // Before this point, the transaction is commited, the connection is released
 // and only remains to return issuing an AFGS_OK.
 AFGS_OK ("Operation terminated", COYOTE_CODE_OK, NULL);
 return TRUE;

Parameters:
con The connection where the commit operation will be performed.
message The error message to report if the commit operation fails.