diff options
| author | Ian Kelly <ian.g.kelly@gmail.com> | 2010-12-03 18:15:54 +0000 |
|---|---|---|
| committer | Ian Kelly <ian.g.kelly@gmail.com> | 2010-12-03 18:15:54 +0000 |
| commit | 5475da1c32efacab3d740bc599f19f2f33be6d2c (patch) | |
| tree | ab0c71a3364ebdc844d0d9cc0b89dda8ae8d0f3b /django | |
| parent | cbf9d6e0bbc323a81449250f139944e4c0b23b2c (diff) | |
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
Diffstat (limited to 'django')
| -rw-r--r-- | django/db/backends/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |
