Implemented quote_name() for ado_mssql DB backend. Thanks, Jakub Labath and Eugene Lazutkin

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1176 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2005-11-11 19:11:11 +00:00
parent 632b63ad76
commit 565a194702
1 changed files with 3 additions and 2 deletions

View File

@ -111,8 +111,9 @@ def get_relations(cursor, table_name):
raise NotImplementedError
def quote_name(name):
# TODO: Figure out how MS-SQL quotes database identifiers.
return name
if name.startswith('[') and name.endswith(']'):
return name # Quoting once is enough.
return '[%s]' % name
OPERATOR_MAPPING = {
'exact': '=',