summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2006-08-12 17:53:04 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2006-08-12 17:53:04 +0000
commit4e033e73f3cb859b118400acd7daf9457f42d094 (patch)
tree497e856e5a78b770a81723d263821573efa2af11
parent697567724880828a4850980273a790cec379982a (diff)
downloadsqlalchemy-4e033e73f3cb859b118400acd7daf9457f42d094.tar.gz
turned off default case-folding rules as they wreak havoc with the current unittests,
temporary isintance() checks in ASNIIdentifierPreparer which will be replaced with visit_ methodology
-rw-r--r--lib/sqlalchemy/ansisql.py10
-rw-r--r--test/engine/reflection.py1
2 files changed, 6 insertions, 5 deletions
diff --git a/lib/sqlalchemy/ansisql.py b/lib/sqlalchemy/ansisql.py
index e1791324d..84b925b49 100644
--- a/lib/sqlalchemy/ansisql.py
+++ b/lib/sqlalchemy/ansisql.py
@@ -750,12 +750,12 @@ class ANSIIdentifierPreparer(object):
def _prepare_table(self, table, use_schema=False):
names = []
- if table.quote:
+ if isinstance(table, schema.Table) and table.quote:
names.append(self._quote_identifier(table.name))
else:
- names.append(self._fold_identifier_case(table.name))
+ names.append(table.name) #self._fold_identifier_case(table.name))
- if not self.omit_schema and use_schema and table.schema:
+ if not self.omit_schema and use_schema and isinstance(table, schema.Table) and table.schema:
if table.quote_schema:
names.insert(0, self._quote_identifier(table.schema))
else:
@@ -765,10 +765,10 @@ class ANSIIdentifierPreparer(object):
def _prepare_column(self, column, use_table=True, **kwargs):
names = []
- if column.quote:
+ if isinstance(column, schema.Column) and column.quote:
names.append(self._quote_identifier(column.name))
else:
- names.append(self._fold_identifier_case(column.name))
+ names.append(column.name) #self._fold_identifier_case(column.name))
if use_table:
names.insert(0, self._prepare_table(column.table, **kwargs))
diff --git a/test/engine/reflection.py b/test/engine/reflection.py
index de2651bd2..52fc2987d 100644
--- a/test/engine/reflection.py
+++ b/test/engine/reflection.py
@@ -290,6 +290,7 @@ class CreateDropTest(PersistTest):
class SchemaTest(PersistTest):
# this test should really be in the sql tests somewhere, not engine
+ @testbase.unsupported('sqlite')
def testiteration(self):
metadata = MetaData()
table1 = Table('table1', metadata,