     IN p_v3Version VARCHAR(5))
 BEGIN
 DECLARE vulnerabilityId INT DEFAULT 0;
+
+START TRANSACTION;
 
 SET @OLD_SQL_SAFE_UPDATES = (SELECT @@SQL_SAFE_UPDATES);
 SET @OLD_SQL_MODE = @@sql_mode;

SET SQL_SAFE_UPDATES = @OLD_SQL_SAFE_UPDATES;
SET SQL_MODE = @OLD_SQL_MODE;

SELECT vulnerabilityId;

END //

    VALUES (p_vulnerabilityId, cpeId, p_versionEndExcluding, p_versionEndIncluding,
            p_versionStartExcluding, p_versionStartIncluding, p_vulnerable);

    SET SQL_SAFE_UPDATES = @OLD_SQL_SAFE_UPDATES;
    COMMIT;
END //
DELIMITER ;

