diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2007-08-20 01:03:33 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2007-08-20 01:03:33 +0000 |
| commit | 221f99ed5831b71b7ddb810ec8808a884773ef04 (patch) | |
| tree | 807edbb6708a2c0530e22d9cca3b9b0adf5da6f0 /django/db/backends/__init__.py | |
| parent | d4f218bd91d08ed79fcc67c10f4e1cfc6b221784 (diff) | |
Refactored quote_name() to DatabaseOperations.quote_name(). Refs #5106
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5967 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/backends/__init__.py')
| -rw-r--r-- | django/db/backends/__init__.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/django/db/backends/__init__.py b/django/db/backends/__init__.py index 78dc506add..632dd36639 100644 --- a/django/db/backends/__init__.py +++ b/django/db/backends/__init__.py @@ -134,6 +134,13 @@ class BaseDatabaseOperations(object): """ return 'DEFAULT' + def quote_name(self, name): + """ + Returns a quoted version of the given table, index or column name. Does + not quote the given name if it's already been quoted. + """ + raise NotImplementedError() + def random_function_sql(self): """ Returns a SQL expression that returns a random value. |
