1
0
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:
Jacob Kaplan-Moss 2006-11-04 21:02:27 +00:00
parent 36d057c902
commit 86b15c609c
7 changed files with 7 additions and 0 deletions

View File

@ -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(']'):

View File

@ -24,6 +24,7 @@ class DatabaseWrapper:
pass # close()
supports_constraints = False
uses_case_insensitive_names = False
quote_name = complain
dictfetchone = complain
dictfetchmany = complain

View File

@ -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("`"):

View File

@ -61,6 +61,7 @@ class DatabaseWrapper(local):
self.connection = None
supports_constraints = True
uses_case_insensitive_names = True
class FormatStylePlaceholderCursor(Database.Cursor):
"""

View File

@ -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('"'):

View File

@ -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('"'):

View File

@ -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('"'):