mirror of
https://github.com/django/django.git
synced 2025-07-04 17:59:13 +00:00
[boulder-oracle-sprint] added uses_case_insensitive_names setting to database backends
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@3981 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
36d057c902
commit
86b15c609c
@ -88,6 +88,7 @@ class DatabaseWrapper(local):
|
||||
self.connection = None
|
||||
|
||||
supports_constraints = True
|
||||
uses_case_insensitive_names = False
|
||||
|
||||
def quote_name(name):
|
||||
if name.startswith('[') and name.endswith(']'):
|
||||
|
@ -24,6 +24,7 @@ class DatabaseWrapper:
|
||||
pass # close()
|
||||
|
||||
supports_constraints = False
|
||||
uses_case_insensitive_names = False
|
||||
quote_name = complain
|
||||
dictfetchone = complain
|
||||
dictfetchmany = complain
|
||||
|
@ -129,6 +129,7 @@ class DatabaseWrapper(local):
|
||||
return self.server_version
|
||||
|
||||
supports_constraints = True
|
||||
uses_case_insensitive_names = False
|
||||
|
||||
def quote_name(name):
|
||||
if name.startswith("`") and name.endswith("`"):
|
||||
|
@ -61,6 +61,7 @@ class DatabaseWrapper(local):
|
||||
self.connection = None
|
||||
|
||||
supports_constraints = True
|
||||
uses_case_insensitive_names = True
|
||||
|
||||
class FormatStylePlaceholderCursor(Database.Cursor):
|
||||
"""
|
||||
|
@ -61,6 +61,7 @@ class DatabaseWrapper(local):
|
||||
self.connection = None
|
||||
|
||||
supports_constraints = True
|
||||
uses_case_insensitive_names = False
|
||||
|
||||
def quote_name(name):
|
||||
if name.startswith('"') and name.endswith('"'):
|
||||
|
@ -62,6 +62,7 @@ class DatabaseWrapper(local):
|
||||
self.connection = None
|
||||
|
||||
supports_constraints = True
|
||||
uses_case_insensitive_names = True
|
||||
|
||||
def quote_name(name):
|
||||
if name.startswith('"') and name.endswith('"'):
|
||||
|
@ -95,6 +95,7 @@ class SQLiteCursorWrapper(Database.Cursor):
|
||||
return query % tuple("?" * num_params)
|
||||
|
||||
supports_constraints = False
|
||||
uses_case_insensitive_names = False
|
||||
|
||||
def quote_name(name):
|
||||
if name.startswith('"') and name.endswith('"'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user