diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-12-20 15:53:01 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-12-20 15:53:01 +0000 |
| commit | 909cf0822f090ef71fb26bd89cb000f98b5ba9fe (patch) | |
| tree | 225f57243f155c073290de50d289eb62f1367336 /django | |
| parent | 36a7d90ab2a8785fbe74b1aa7cf3d58f3d4b279e (diff) | |
Fixed #1093 -- Fixed error in inspectdb from [1688]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1744 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django')
| -rw-r--r-- | django/core/db/backends/mysql.py | 2 | ||||
| -rw-r--r-- | django/core/db/backends/sqlite3.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/django/core/db/backends/mysql.py b/django/core/db/backends/mysql.py index 643b51fcd4..629ea8d71f 100644 --- a/django/core/db/backends/mysql.py +++ b/django/core/db/backends/mysql.py @@ -126,7 +126,7 @@ def get_table_list(cursor): def get_table_description(cursor, table_name): "Returns a description of the table, with the DB-API cursor.description interface." - cursor.execute("SELECT * FROM %s LIMIT 1" % DatabaseWrapper.quote_name(table_name)) + cursor.execute("SELECT * FROM %s LIMIT 1" % DatabaseWrapper().quote_name(table_name)) return cursor.description def get_relations(cursor, table_name): diff --git a/django/core/db/backends/sqlite3.py b/django/core/db/backends/sqlite3.py index 3d466a60c6..2726b05dd9 100644 --- a/django/core/db/backends/sqlite3.py +++ b/django/core/db/backends/sqlite3.py @@ -128,7 +128,7 @@ def get_table_list(cursor): return [row[0] for row in cursor.fetchall()] def get_table_description(cursor, table_name): - cursor.execute("PRAGMA table_info(%s)" % DatabaseWrapper.quote_name(table_name)) + cursor.execute("PRAGMA table_info(%s)" % DatabaseWrapper().quote_name(table_name)) return [(row[1], row[2], None, None) for row in cursor.fetchall()] def get_relations(cursor, table_name): |
