mirror of
https://github.com/django/django.git
synced 2025-07-04 09:49:12 +00:00
magic-removal: Merged to [2645]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2646 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
74be995014
commit
985da9307b
@ -115,8 +115,7 @@ dictfetchmany = util.dictfetchmany
|
||||
dictfetchall = util.dictfetchall
|
||||
|
||||
def get_last_insert_id(cursor, table_name, pk_name):
|
||||
cursor.execute("SELECT LAST_INSERT_ID()")
|
||||
return cursor.fetchone()[0]
|
||||
return cursor.lastrowid
|
||||
|
||||
def get_date_extract_sql(lookup_type, table_name):
|
||||
# lookup_type is 'year', 'month', 'day'
|
||||
|
Loading…
x
Reference in New Issue
Block a user