summaryrefslogtreecommitdiff
path: root/django/db/backends/postgresql/operations.py
diff options
context:
space:
mode:
authorJacob Kaplan-Moss <jacob@jacobian.org>2008-02-26 22:17:45 +0000
committerJacob Kaplan-Moss <jacob@jacobian.org>2008-02-26 22:17:45 +0000
commitf7fbc289ad7e13436f17939046cd1adfe438b126 (patch)
tree472d3b5beab6b02ba38c4044e3e4e6e650770313 /django/db/backends/postgresql/operations.py
parent00f051985933abd32c545f54487de571df813c67 (diff)
downloaddjango-f7fbc289ad7e13436f17939046cd1adfe438b126.tar.gz
Reverted [7151] since it breaks exact IP lookups on PostgreSQL. Reopens #708
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7160 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/backends/postgresql/operations.py')
-rw-r--r--django/db/backends/postgresql/operations.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/django/db/backends/postgresql/operations.py b/django/db/backends/postgresql/operations.py
index 2c40b11607..20392b238e 100644
--- a/django/db/backends/postgresql/operations.py
+++ b/django/db/backends/postgresql/operations.py
@@ -27,11 +27,6 @@ class DatabaseOperations(BaseDatabaseOperations):
def deferrable_sql(self):
return " DEFERRABLE INITIALLY DEFERRED"
- def field_cast_sql(self, db_type):
- if db_type == 'inet':
- return 'CAST(%s AS TEXT)'
- return '%s'
-
def last_insert_id(self, cursor, table_name, pk_name):
cursor.execute("SELECT CURRVAL('\"%s_%s_seq\"')" % (table_name, pk_name))
return cursor.fetchone()[0]