Removed unused DatabaseOperations.last_insert_id() on PostgreSQL.
Unused since 9eb2afddfa
.
This commit is contained in:
parent
2d136ede8a
commit
5d9034bc92
|
@ -85,13 +85,6 @@ class DatabaseOperations(BaseDatabaseOperations):
|
||||||
|
|
||||||
return lookup
|
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):
|
def no_limit_value(self):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue