

def sql_flush(self, style, tables, sequences):
    if column_name:
        if (self.postgres_version[0:2] >= (8, 1)):
            sql = [('%s %s;' % (style.SQL_KEYWORD('TRUNCATE'), style.SQL_FIELD(', '.join([self.quote_name(table) for table in tables]))))]
        else:
            sql = [('%s %s %s;' % (style.SQL_KEYWORD('DELETE'), style.SQL_KEYWORD('FROM'), style.SQL_FIELD(self.quote_name(table)))) for table in tables]
        for sequence_info in sequences:
            table_name = sequence_info['table']
            column_name = sequence_info['column']
            if (column_name and (len(column_name) > 0)):
                sequence_name = ('%s_%s_seq' % (table_name, column_name))
            else:
                sequence_name = ('%s_id_seq' % table_name)
            sql.append(("%s setval('%s', 1, false);" % (style.SQL_KEYWORD('SELECT'), style.SQL_FIELD(self.quote_name(sequence_name)))))
        return sql
    else:
        return []

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/django/db/backends/postgresql/operations.py DatabaseOperations.sql_flush/VarMisuse@17/19 `tables`->`column_name`