diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2017-08-01 22:53:17 +0200 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2017-08-01 16:53:17 -0400 |
commit | 5d9034bc92e9def0785a3b7cd9ca65e284db0191 (patch) | |
tree | e19fe7a6ab8f65f0d2b4c87336e0e517d592dc48 /django/db/backends/postgresql/operations.py | |
parent | 2d136ede8abd6876b33607eea094e6903eb77d77 (diff) | |
download | django-5d9034bc92e9def0785a3b7cd9ca65e284db0191.tar.gz |
Removed unused DatabaseOperations.last_insert_id() on PostgreSQL.
Unused since 9eb2afddfa0165d69f3e506122c2aa2b68618591.
Diffstat (limited to 'django/db/backends/postgresql/operations.py')
-rw-r--r-- | django/db/backends/postgresql/operations.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/django/db/backends/postgresql/operations.py b/django/db/backends/postgresql/operations.py index 2cc886a76d..bff8e87d68 100644 --- a/django/db/backends/postgresql/operations.py +++ b/django/db/backends/postgresql/operations.py @@ -85,13 +85,6 @@ class DatabaseOperations(BaseDatabaseOperations): return lookup - def last_insert_id(self, cursor, table_name, pk_name): - # Use pg_get_serial_sequence to get the underlying sequence name - # from the table name and column name (available since PostgreSQL 8) - cursor.execute("SELECT CURRVAL(pg_get_serial_sequence('%s','%s'))" % ( - self.quote_name(table_name), pk_name)) - return cursor.fetchone()[0] - def no_limit_value(self): return None |