From ab828da2b91c71987ef23baee4a1613fdb330c5f Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Thu, 11 Feb 2010 12:21:46 +0000 Subject: Fixed #11623 -- Corrected table name quoting in db cache backend. Thanks to Fraser Nevett for the report and fix. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12410 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/cache/backends/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django/core/cache') diff --git a/django/core/cache/backends/db.py b/django/core/cache/backends/db.py index dd18cd6b1d..25cbe4d236 100644 --- a/django/core/cache/backends/db.py +++ b/django/core/cache/backends/db.py @@ -12,7 +12,7 @@ except ImportError: class CacheClass(BaseCache): def __init__(self, table, params): BaseCache.__init__(self, params) - self._table = table + self._table = connection.ops.quote_name(table) max_entries = params.get('max_entries', 300) try: self._max_entries = int(max_entries) -- cgit v1.3