magic-removal: Merged to [1875]

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1876 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2006-01-09 01:38:19 +00:00
parent aa2da5f4de
commit 1994ebb811
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ def dictfetchall(cursor):
return cursor.dictfetchall() return cursor.dictfetchall()
def get_last_insert_id(cursor, table_name, pk_name): def get_last_insert_id(cursor, table_name, pk_name):
cursor.execute("SELECT CURRVAL('%s_%s_seq')" % (table_name, pk_name)) cursor.execute("SELECT CURRVAL('\"%s_%s_seq\"')" % (table_name, pk_name))
return cursor.fetchone()[0] return cursor.fetchone()[0]
def get_date_extract_sql(lookup_type, table_name): def get_date_extract_sql(lookup_type, table_name):