summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Kaplan-Moss <jacob@jacobian.org>2006-11-04 21:02:27 +0000
committerJacob Kaplan-Moss <jacob@jacobian.org>2006-11-04 21:02:27 +0000
commit86b15c609c6e91a351abed7de657dad61ae52e30 (patch)
tree7fd82e1ff65e1762cea32bd10732ff2565fbf21c
parent36d057c9024d457eed3175b19ca159d15b57fe34 (diff)
[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
-rw-r--r--django/db/backends/ado_mssql/base.py1
-rw-r--r--django/db/backends/dummy/base.py1
-rw-r--r--django/db/backends/mysql/base.py1
-rw-r--r--django/db/backends/oracle/base.py1
-rw-r--r--django/db/backends/postgresql/base.py1
-rw-r--r--django/db/backends/postgresql_psycopg2/base.py1
-rw-r--r--django/db/backends/sqlite3/base.py1
7 files changed, 7 insertions, 0 deletions
diff --git a/django/db/backends/ado_mssql/base.py b/django/db/backends/ado_mssql/base.py
index 54a91b8ff1..87b983f4df 100644
--- a/django/db/backends/ado_mssql/base.py
+++ b/django/db/backends/ado_mssql/base.py
@@ -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(']'):
diff --git a/django/db/backends/dummy/base.py b/django/db/backends/dummy/base.py
index 985fe96469..5830967dc7 100644
--- a/django/db/backends/dummy/base.py
+++ b/django/db/backends/dummy/base.py
@@ -24,6 +24,7 @@ class DatabaseWrapper:
pass # close()
supports_constraints = False
+uses_case_insensitive_names = False
quote_name = complain
dictfetchone = complain
dictfetchmany = complain
diff --git a/django/db/backends/mysql/base.py b/django/db/backends/mysql/base.py
index 80c26ee953..93a1f32344 100644
--- a/django/db/backends/mysql/base.py
+++ b/django/db/backends/mysql/base.py
@@ -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("`"):
diff --git a/django/db/backends/oracle/base.py b/django/db/backends/oracle/base.py
index d25642a62a..813ab8d385 100644
--- a/django/db/backends/oracle/base.py
+++ b/django/db/backends/oracle/base.py
@@ -61,6 +61,7 @@ class DatabaseWrapper(local):
self.connection = None
supports_constraints = True
+uses_case_insensitive_names = True
class FormatStylePlaceholderCursor(Database.Cursor):
"""
diff --git a/django/db/backends/postgresql/base.py b/django/db/backends/postgresql/base.py
index e22e752550..70c142ab55 100644
--- a/django/db/backends/postgresql/base.py
+++ b/django/db/backends/postgresql/base.py
@@ -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('"'):
diff --git a/django/db/backends/postgresql_psycopg2/base.py b/django/db/backends/postgresql_psycopg2/base.py
index 5a1d321a70..8f45851e8d 100644
--- a/django/db/backends/postgresql_psycopg2/base.py
+++ b/django/db/backends/postgresql_psycopg2/base.py
@@ -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('"'):
diff --git a/django/db/backends/sqlite3/base.py b/django/db/backends/sqlite3/base.py
index d7b659a69e..ebc209ac1e 100644
--- a/django/db/backends/sqlite3/base.py
+++ b/django/db/backends/sqlite3/base.py
@@ -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('"'):