Ticket #3627: fix.diff

File fix.diff, 1.3 KB (added by Gary Wilson <gary.wilson@…>, 17 years ago)

a couple of errors

  • django/db/backends/postgresql/base.py

     
    170170            # single SQL TRUNCATE statement.
    171171            sql = ['%s %s;' % \
    172172                (style.SQL_KEYWORD('TRUNCATE'),
    173                  style.SQL_FIELD(', '.join(quote_name(table) for table in tables))
     173                 style.SQL_FIELD(', '.join([quote_name(table) for table in tables]))
    174174            )]
    175175        else:
    176176            # Older versions of Postgres can't do TRUNCATE in a single call, so they must use
  • django/db/backends/postgresql_psycopg2/base.py

     
    129129            # single SQL TRUNCATE statement
    130130            sql = ['%s %s;' % \
    131131                    (style.SQL_KEYWORD('TRUNCATE'),
    132                      style.SQL_FIELD(', '.join(quote_name(table) for table in tables))
     132                     style.SQL_FIELD(', '.join([quote_name(table) for table in tables]))
    133133                    )]
    134134        else:
    135135            sql = ['%s %s %s;' % \
Back to Top