 
   -- 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 
  SET @user_id = user_id;
  SET @request_id = request_id;


      SET message_text = @msg;
  END IF;

  START TRANSACTION;
  -- get the points on this request.

