From 5475da1c32efacab3d740bc599f19f2f33be6d2c Mon Sep 17 00:00:00 2001 From: Ian Kelly Date: Fri, 3 Dec 2010 18:15:54 +0000 Subject: Added a regression test for r14781. Also fixed a bug where connection.vendor was effectively always 'unknown', causing all vendor-specific tests to be skipped. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14783 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/db/backends/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django') diff --git a/django/db/backends/__init__.py b/django/db/backends/__init__.py index 23bfafbba4..23df66a762 100644 --- a/django/db/backends/__init__.py +++ b/django/db/backends/__init__.py @@ -11,6 +11,7 @@ class BaseDatabaseWrapper(local): Represents a database connection. """ ops = None + vendor = 'unknown' def __init__(self, settings_dict, alias=DEFAULT_DB_ALIAS): # `settings_dict` should be a dictionary containing keys such as @@ -20,7 +21,6 @@ class BaseDatabaseWrapper(local): self.queries = [] self.settings_dict = settings_dict self.alias = alias - self.vendor = 'unknown' self.use_debug_cursor = None def __eq__(self, other): -- cgit v1.3