#define AFGS_ROLLBACK_ERROR con,
message   ) 
 

Value:

Allows to perform a transaction close operation.

While working with transactions inside server side, it is required to perform several operations while a error have happened. This operation involves to rollback the operation being done, release the connection reserved to operate and to reply with an error message.

All this operation could be performed by writing the following piece of code:

 if (! NON_QUERY_WITH("...", arguments, connection)) {
     afgs_command_rollback                (connection);
     afgs_command_connection_pool_release (connection);
     AFGS_ERROR ("Unable to complete the operation", COYOTE_CODE_ERROR);
     return TRUE;
 }

But previous code could be performed as well using the macro provided:

 if (! NON_QUERY_WITH("...", arguments, connection)) {
      AFGS_ROLLBACK_ERROR (connection, "Unable to complete the operation");
      return TRUE;
 }

Parameters:
con 
message 
Returns: