#define afgs_command_rollback connection   )     afgs_command_execute_non_query_with_con(connection, "ROLLBACK")

Allows to perform a ROLLBACK operation into the given connection.

If an error is found, common database configuration is to rollback current state into the state when the BEGIN (see afgs_command_begin).

However, to ensure that a rollback is done and the given connection gets ready to be used again, a ROLLBACK operation should be performed if a error is found.

See also:

  • AfGsConnection, how to get a connection to perform SQL operations using the same connection/context.

connection The connection where the ROLLBACK operation will be performed.
TRUE if the ROLLBACK operation was allowed and successfully finished. Otherwise FALSE is returned.