       SET message_text = @msg;
   END IF;
 
-  DECLARE EXIT HANDLER FOR SQLEXCEPTION, SQLWARNING ROLLBACK;
   START TRANSACTION;
 
   -- add the user

  request_id INT UNSIGNED
) 
BEGIN 
  -- A) The main part - add the request to that table.
  SET @message = message;
  SET @user_id = user_id;
  SET @request_id = request_id;

  DECLARE EXIT HANDLER FOR SQLEXCEPTION, SQLWARNING ROLLBACK;
  START TRANSACTION;

	SET @insert_clause = 

      SET message_text = @msg;
  END IF;

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

