       SET message_text = @msg;
   END IF;
 
-  DECLARE EXIT HANDLER FOR SQLEXCEPTION, SQLWARNING ROLLBACK;
   START TRANSACTION;
   -- get the points on this request.
 


  -- Prepare a handler in case there is a SQLException, 
  -- we want to roll back.
  DECLARE EXIT HANDLER FOR SQLEXCEPTION, SQLWARNING ROLLBACK;
  START TRANSACTION;

  -- A) The main part - add the request to that table.

  request_id INT UNSIGNED
) 
BEGIN 
  DECLARE EXIT HANDLER FOR SQLEXCEPTION, SQLWARNING ROLLBACK;
  SET @user_id = user_id;
  SET @request_id = request_id;

