summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/databases
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2007-10-02 15:49:12 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2007-10-02 15:49:12 +0000
commitee2247f78f2c0d7420c179a8a8eed144188e958b (patch)
tree52a2a4c9879d2cacdeff346f90625948d64b08ef /lib/sqlalchemy/databases
parent35ff8ed25e8a03b36461fbe09d0530bb1164ce82 (diff)
downloadsqlalchemy-ee2247f78f2c0d7420c179a8a8eed144188e958b.tar.gz
removed unused _fold_identifier_case method
Diffstat (limited to 'lib/sqlalchemy/databases')
-rw-r--r--lib/sqlalchemy/databases/informix.py3
-rw-r--r--lib/sqlalchemy/databases/mssql.py4
-rw-r--r--lib/sqlalchemy/databases/mysql.py10
-rw-r--r--lib/sqlalchemy/databases/postgres.py3
4 files changed, 0 insertions, 20 deletions
diff --git a/lib/sqlalchemy/databases/informix.py b/lib/sqlalchemy/databases/informix.py
index 67d31387d..feb79f7ab 100644
--- a/lib/sqlalchemy/databases/informix.py
+++ b/lib/sqlalchemy/databases/informix.py
@@ -498,9 +498,6 @@ class InfoIdentifierPreparer(compiler.IdentifierPreparer):
def __init__(self, dialect):
super(InfoIdentifierPreparer, self).__init__(dialect, initial_quote="'")
- def _fold_identifier_case(self, value):
- return value.lower()
-
def _requires_quotes(self, value):
return False
diff --git a/lib/sqlalchemy/databases/mssql.py b/lib/sqlalchemy/databases/mssql.py
index 4f3b9e3dd..d9da409d2 100644
--- a/lib/sqlalchemy/databases/mssql.py
+++ b/lib/sqlalchemy/databases/mssql.py
@@ -981,10 +981,6 @@ class MSSQLIdentifierPreparer(compiler.IdentifierPreparer):
#TODO: determin MSSQL's escapeing rules
return value
- def _fold_identifier_case(self, value):
- #TODO: determin MSSQL's case folding rules
- return value
-
dialect = MSSQLDialect
dialect.statement_compiler = MSSQLCompiler
dialect.schemagenerator = MSSQLSchemaGenerator
diff --git a/lib/sqlalchemy/databases/mysql.py b/lib/sqlalchemy/databases/mysql.py
index c0b1179a3..50923fe92 100644
--- a/lib/sqlalchemy/databases/mysql.py
+++ b/lib/sqlalchemy/databases/mysql.py
@@ -2477,16 +2477,6 @@ class _MySQLIdentifierPreparer(compiler.IdentifierPreparer):
def __init__(self, dialect, **kw):
super(_MySQLIdentifierPreparer, self).__init__(dialect, **kw)
- def _fold_identifier_case(self, value):
- # TODO: determine MySQL's case folding rules
- #
- # For compatability with sql.text() issued statements, maybe it's best
- # to just leave things as-is. When lower_case_table_names > 0 it
- # looks a good idea to lc everything, but more importantly the casing
- # of all identifiers in an expression must be consistent. So for now,
- # just leave everything as-is.
- return value
-
def _quote_free_identifiers(self, *ids):
"""Unilaterally identifier-quote any number of strings."""
diff --git a/lib/sqlalchemy/databases/postgres.py b/lib/sqlalchemy/databases/postgres.py
index 9292e6ea4..305e8e831 100644
--- a/lib/sqlalchemy/databases/postgres.py
+++ b/lib/sqlalchemy/databases/postgres.py
@@ -669,9 +669,6 @@ class PGDefaultRunner(base.DefaultRunner):
return None
class PGIdentifierPreparer(compiler.IdentifierPreparer):
- def _fold_identifier_case(self, value):
- return value.lower()
-
def _unquote_identifier(self, value):
if value[0] == self.initial_quote:
value = value[1:-1].replace('""','"')