From 29f94df81b7d08a4c48e3580394ffc29cd8cc9fe Mon Sep 17 00:00:00 2001 From: adrian Date: Fri, 25 Nov 2005 04:27:50 +0000 Subject: [PATCH] Fixed #882 -- Fixed bug when doing django-admin.py sqlclear with SQLite. Thanks, ye7cakf02 git-svn-id: http://code.djangoproject.com/svn/django/trunk@1429 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- AUTHORS | 1 + django/core/management.py | 1 + 2 files changed, 2 insertions(+) diff --git a/AUTHORS b/AUTHORS index af8c723f02..fe6e68f177 100644 --- a/AUTHORS +++ b/AUTHORS @@ -80,6 +80,7 @@ answer newbie questions, and generally made Django that much better: Milton Waddams Rachel Willmer wojtek + ye7cakf02@sneakemail.com A big THANK YOU goes to: diff --git a/django/core/management.py b/django/core/management.py index 205cdec3e5..efc1d9f42c 100644 --- a/django/core/management.py +++ b/django/core/management.py @@ -187,6 +187,7 @@ def get_sql_delete(mod): # Close database connection explicitly, in case this output is being piped # directly into a database client, to avoid locking issues. + cursor.close() db.db.close() return output[::-1] # Reverse it, to deal with table dependencies.