]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
removed unused _fold_identifier_case method
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 2 Oct 2007 15:49:12 +0000 (15:49 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 2 Oct 2007 15:49:12 +0000 (15:49 +0000)
lib/sqlalchemy/databases/informix.py
lib/sqlalchemy/databases/mssql.py
lib/sqlalchemy/databases/mysql.py
lib/sqlalchemy/databases/postgres.py
lib/sqlalchemy/sql/compiler.py

index 67d31387d52eff90deb151182438aab654e1d47a..feb79f7aba82a40f74b2cad98ea18fa0d209a90a 100644 (file)
@@ -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
 
index 4f3b9e3dd332f7e98463ae6145a3603951bf5b10..d9da409d2c6e1e4340ef3141ecde3a679bbcec0b 100644 (file)
@@ -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
index c0b1179a3738af7027b159edceb5f122589ed033..50923fe9260afd70305e1510c9ac23e7be36d3b1 100644 (file)
@@ -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."""
 
index 9292e6ea49135f622044b7c734873b2535f9129c..305e8e83177c7922c94a3bdd6fda69408b4c054b 100644 (file)
@@ -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('""','"')
index 6d22da1dedde6056da3684eeba973d6739463bb3..3afd3fdc34049d887d51739252a1490a66d95962 100644 (file)
@@ -963,18 +963,6 @@ class IdentifierPreparer(object):
 
         return self.initial_quote + self._escape_identifier(value) + self.final_quote
 
-    def _fold_identifier_case(self, value):
-        """Fold the case of an identifier.
-
-        Subclasses should override this to provide database-dependent
-        case folding behavior.
-        """
-
-        return value
-        # ANSI SQL calls for the case of all unquoted identifiers to be folded to UPPER.
-        # some tests would need to be rewritten if this is done.
-        #return value.upper()
-
     def _requires_quotes(self, value):
         """Return True if the given identifier requires quoting."""
         lc_value = value.lower()