diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2007-08-20 00:30:19 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2007-08-20 00:30:19 +0000 |
| commit | d4f218bd91d08ed79fcc67c10f4e1cfc6b221784 (patch) | |
| tree | 752217d54feb37b974e831720b2ad0323db6db18 /django/db/backends/ado_mssql/base.py | |
| parent | 13061bf20bc467c5655c2dfa280dc226a00effcd (diff) | |
Refactored get_tablespace_sql() to DatabaseOperations.tablespace_sql(). Refs #5106
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5966 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/backends/ado_mssql/base.py')
| -rw-r--r-- | django/db/backends/ado_mssql/base.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/django/db/backends/ado_mssql/base.py b/django/db/backends/ado_mssql/base.py index 192c069449..4898d38341 100644 --- a/django/db/backends/ado_mssql/base.py +++ b/django/db/backends/ado_mssql/base.py @@ -70,6 +70,9 @@ class DatabaseOperations(BaseDatabaseOperations): def random_function_sql(self): return 'RAND()' + def tablespace_sql(self, tablespace, inline=False): + return "ON %s" % quote_name(tablespace) + class DatabaseWrapper(BaseDatabaseWrapper): ops = DatabaseOperations() @@ -103,9 +106,6 @@ dictfetchone = util.dictfetchone dictfetchmany = util.dictfetchmany dictfetchall = util.dictfetchall -def get_tablespace_sql(tablespace, inline=False): - return "ON %s" % quote_name(tablespace) - OPERATOR_MAPPING = { 'exact': '= %s', 'iexact': 'LIKE %s', |
