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:
parent
632b63ad76
commit
565a194702
|
@ -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': '=',
|
||||
|
|
Loading…
Reference in New Issue