Fixed #3627 -- Made [4659] compatible with Python 2.3. Thanks, Gary Wilson.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4662 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2007-03-02 05:15:27 +00:00
parent 790b585819
commit dd99bc7d02
2 changed files with 2 additions and 2 deletions

View File

@ -170,7 +170,7 @@ def get_sql_flush(style, tables, sequences):
# single SQL TRUNCATE statement. # single SQL TRUNCATE statement.
sql = ['%s %s;' % \ sql = ['%s %s;' % \
(style.SQL_KEYWORD('TRUNCATE'), (style.SQL_KEYWORD('TRUNCATE'),
style.SQL_FIELD(', '.join(quote_name(table) for table in tables)) style.SQL_FIELD(', '.join([quote_name(table) for table in tables]))
)] )]
else: else:
# Older versions of Postgres can't do TRUNCATE in a single call, so they must use # Older versions of Postgres can't do TRUNCATE in a single call, so they must use

View File

@ -129,7 +129,7 @@ def get_sql_flush(style, tables, sequences):
# single SQL TRUNCATE statement # single SQL TRUNCATE statement
sql = ['%s %s;' % \ sql = ['%s %s;' % \
(style.SQL_KEYWORD('TRUNCATE'), (style.SQL_KEYWORD('TRUNCATE'),
style.SQL_FIELD(', '.join(quote_name(table) for table in tables)) style.SQL_FIELD(', '.join([quote_name(table) for table in tables]))
)] )]
else: else:
sql = ['%s %s %s;' % \ sql = ['%s %s %s;' % \