MCPcopy
hub / github.com/django/django / last_insert_id

Method last_insert_id

django/db/backends/oracle/operations.py:359–362  ·  view source on GitHub ↗
(self, cursor, table_name, pk_name)

Source from the content-addressed store, hash-verified

357 )
358
359 def last_insert_id(self, cursor, table_name, pk_name):
360 sq_name = self._get_sequence_name(cursor, strip_quotes(table_name), pk_name)
361 cursor.execute('"%s".currval' % sq_name)
362 return cursor.fetchone()[0]
363
364 def lookup_cast(self, lookup_type, internal_type=None):
365 if lookup_type in ("iexact", "icontains", "istartswith", "iendswith"):

Callers 1

execute_sqlMethod · 0.45

Calls 3

_get_sequence_nameMethod · 0.95
strip_quotesFunction · 0.90
executeMethod · 0.45

Tested by

no test coverage detected