summaryrefslogtreecommitdiff
path: root/django/db/backends/postgresql_psycopg2/operations.py
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2012-03-13 23:29:15 +0000
committerAymeric Augustin <aymeric.augustin@m4x.org>2012-03-13 23:29:15 +0000
commit3ef55dfaa03b3f5be3ee3632dfc59b8f752d2dec (patch)
tree8124c0dd366ed0c007f3dc0631a761709aa535a6 /django/db/backends/postgresql_psycopg2/operations.py
parent4b14546215ad4ef15f04e748e3b5f0da7b613b45 (diff)
downloaddjango-3ef55dfaa03b3f5be3ee3632dfc59b8f752d2dec.tar.gz
Fixed #17882 (again) -- Updated the database connections' time zone when time-zone-related settings are changed in tests.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17709 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/backends/postgresql_psycopg2/operations.py')
-rw-r--r--django/db/backends/postgresql_psycopg2/operations.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/django/db/backends/postgresql_psycopg2/operations.py b/django/db/backends/postgresql_psycopg2/operations.py
index 949a05c0b6..395cd92047 100644
--- a/django/db/backends/postgresql_psycopg2/operations.py
+++ b/django/db/backends/postgresql_psycopg2/operations.py
@@ -71,6 +71,9 @@ class DatabaseOperations(BaseDatabaseOperations):
return name # Quoting once is enough.
return '"%s"' % name
+ def set_time_zone_sql(self):
+ return "SET TIME ZONE %s"
+
def sql_flush(self, style, tables, sequences):
if tables:
# Perform a single SQL 'TRUNCATE x, y, z...;' statement. It allows