def _get_end_statement(sql, start):
    """Given a value and starting position, find the end of the statement

    This function assumes all comments and string literals have been stripped in the sql

    Returns:
        int: The index of the end of the statement
    """
    found = sql.find(';', start)
    return len(sql) if found == -1 else found