diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-10-02 15:49:12 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-10-02 15:49:12 +0000 |
commit | ee2247f78f2c0d7420c179a8a8eed144188e958b (patch) | |
tree | 52a2a4c9879d2cacdeff346f90625948d64b08ef /lib/sqlalchemy | |
parent | 35ff8ed25e8a03b36461fbe09d0530bb1164ce82 (diff) | |
download | sqlalchemy-ee2247f78f2c0d7420c179a8a8eed144188e958b.tar.gz |
removed unused _fold_identifier_case method
Diffstat (limited to 'lib/sqlalchemy')
-rw-r--r-- | lib/sqlalchemy/databases/informix.py | 3 | ||||
-rw-r--r-- | lib/sqlalchemy/databases/mssql.py | 4 | ||||
-rw-r--r-- | lib/sqlalchemy/databases/mysql.py | 10 | ||||
-rw-r--r-- | lib/sqlalchemy/databases/postgres.py | 3 | ||||
-rw-r--r-- | lib/sqlalchemy/sql/compiler.py | 12 |
5 files changed, 0 insertions, 32 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('""','"') diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py index 6d22da1de..3afd3fdc3 100644 --- a/lib/sqlalchemy/sql/compiler.py +++ b/lib/sqlalchemy/sql/compiler.py @@ -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() |