'Returns an SQL DISTINCT clause which removes duplicate rows from the
result set. If any fields are given, only the given fields are being
checked for duplicates.'

def distinct_sql(self, fields):

    if fields:
        raise NotImplementedError('DISTINCT    ON    fields    is    not    supported    by    this    database    backend')
    else:
        return 'DISTINCT'
