def fix_pctg_in_name(val):
    """
    Function that escapes a value for SQL processing (replacing % by double %%)
    :param val: Value to escape
    :return: Escaped value
    """
    return val.replace('%', '%%')