Ticket #3627: fix.diff
File fix.diff, 1.3 KB (added by , 18 years ago) |
---|
-
django/db/backends/postgresql/base.py
170 170 # single SQL TRUNCATE statement. 171 171 sql = ['%s %s;' % \ 172 172 (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])) 174 174 )] 175 175 else: 176 176 # Older versions of Postgres can't do TRUNCATE in a single call, so they must use -
django/db/backends/postgresql_psycopg2/base.py
129 129 # single SQL TRUNCATE statement 130 130 sql = ['%s %s;' % \ 131 131 (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])) 133 133 )] 134 134 else: 135 135 sql = ['%s %s %s;' % \