From b6ae173078e51248bd272b1f82249b5fa4ff5e56 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sun, 9 Aug 2009 02:41:56 +0000 Subject: [PATCH] [soc2009/multidb] Removed duplicate cache in the Oracle backend. git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@11417 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/db/backends/oracle/query.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/django/db/backends/oracle/query.py b/django/db/backends/oracle/query.py index 7be9533e34..f3d37b9c67 100644 --- a/django/db/backends/oracle/query.py +++ b/django/db/backends/oracle/query.py @@ -8,9 +8,6 @@ import datetime from django.db.backends import util from django.utils.encoding import force_unicode -# Cache. Maps default query class to new Oracle query class. -_classes = {} - def query_class(QueryClass, Database): """ Returns a custom django.db.models.sql.query.Query subclass that is @@ -19,12 +16,6 @@ def query_class(QueryClass, Database): The 'Database' module (cx_Oracle) is passed in here so that all the setup required to import it only needs to be done by the calling module. """ - global _classes - try: - return _classes[QueryClass] - except KeyError: - pass - class OracleQuery(QueryClass): def __reduce__(self): """ @@ -133,7 +124,6 @@ def query_class(QueryClass, Database): return sql, params - _classes[QueryClass] = OracleQuery return OracleQuery def unpickle_query_class(QueryClass):