diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-03-02 05:15:27 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-03-02 05:15:27 +0000 |
| commit | dd99bc7d0226ff76903e9c2a62210b4614addc5a (patch) | |
| tree | 5718d90f66fc5ca5489e77b765e611a58c3a0d3a | |
| parent | 790b5858194d66f3fe1c2bb8d266408469049166 (diff) | |
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
| -rw-r--r-- | django/db/backends/postgresql/base.py | 2 | ||||
| -rw-r--r-- | django/db/backends/postgresql_psycopg2/base.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/django/db/backends/postgresql/base.py b/django/db/backends/postgresql/base.py index 1aeaa8b437..89695b0c4b 100644 --- a/django/db/backends/postgresql/base.py +++ b/django/db/backends/postgresql/base.py @@ -170,7 +170,7 @@ def get_sql_flush(style, tables, sequences): # single SQL TRUNCATE statement. sql = ['%s %s;' % \ (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: # Older versions of Postgres can't do TRUNCATE in a single call, so they must use diff --git a/django/db/backends/postgresql_psycopg2/base.py b/django/db/backends/postgresql_psycopg2/base.py index 46ae67779d..9b319ad3c7 100644 --- a/django/db/backends/postgresql_psycopg2/base.py +++ b/django/db/backends/postgresql_psycopg2/base.py @@ -129,7 +129,7 @@ def get_sql_flush(style, tables, sequences): # single SQL TRUNCATE statement sql = ['%s %s;' % \ (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: sql = ['%s %s %s;' % \ |
