From 1994ebb811bd5f8f648e700dd8cce0781b07e426 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Mon, 9 Jan 2006 01:38:19 +0000 Subject: [PATCH] magic-removal: Merged to [1875] git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1876 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/db/backends/postgresql/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/db/backends/postgresql/base.py b/django/db/backends/postgresql/base.py index bc16564a3b..98f70fcdb4 100644 --- a/django/db/backends/postgresql/base.py +++ b/django/db/backends/postgresql/base.py @@ -69,7 +69,7 @@ def dictfetchall(cursor): return cursor.dictfetchall() 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] def get_date_extract_sql(lookup_type, table_name):