mirror of
https://github.com/django/django.git
synced 2025-06-05 11:39:13 +00:00
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
|
raise NotImplementedError
|
||||||
|
|
||||||
def quote_name(name):
|
def quote_name(name):
|
||||||
# TODO: Figure out how MS-SQL quotes database identifiers.
|
if name.startswith('[') and name.endswith(']'):
|
||||||
return name
|
return name # Quoting once is enough.
|
||||||
|
return '[%s]' % name
|
||||||
|
|
||||||
OPERATOR_MAPPING = {
|
OPERATOR_MAPPING = {
|
||||||
'exact': '=',
|
'exact': '=',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user