mirror of
https://github.com/django/django.git
synced 2025-09-13 14:06:28 +00:00
Refactored get_last_insert_id() to DatabaseOperations.last_insert_id(). Refs #5106
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5958 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
5a6426448f
commit
5ce050a5f5
10 changed files with 28 additions and 28 deletions
|
@ -155,9 +155,6 @@ dictfetchone = util.dictfetchone
|
|||
dictfetchmany = util.dictfetchmany
|
||||
dictfetchall = util.dictfetchall
|
||||
|
||||
def get_last_insert_id(cursor, table_name, pk_name):
|
||||
return cursor.lastrowid
|
||||
|
||||
def get_limit_offset_sql(limit, offset=None):
|
||||
sql = "LIMIT "
|
||||
if offset and offset != 0:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue