]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
removed unecessary oracle specific logic
authorRandall Smith <randall@tnr.cc>
Sat, 25 Apr 2009 18:41:11 +0000 (18:41 +0000)
committerRandall Smith <randall@tnr.cc>
Sat, 25 Apr 2009 18:41:11 +0000 (18:41 +0000)
lib/sqlalchemy/engine/reflection.py

index a21332cd8aa14286c18ec3971aaecf2570ecf984..6cbb2e2be2f967960dc30f2a95b505b4b961e05f 100644 (file)
@@ -233,11 +233,11 @@ class Inspector(object):
 
     def reflecttable(self, table, include_columns):
 
+        dialect = self.conn.dialect
+
         # for some work arounds
         from sqlalchemy.dialects.mysql.mysqldb import MySQLDialect
 
-        dialect = self.conn.dialect
-
         # MySQL dialect does this.  Applicable with other dialects?
         if hasattr(dialect, '_connection_charset') \
                                         and hasattr(dialect, '_adjust_casing'):
@@ -248,15 +248,6 @@ class Inspector(object):
         oracle_resolve_synonyms = table.kwargs.get('oracle_resolve_synonyms',
                                                    False)
 
-        # oracle stuff; could be made for generic synonym support.
-        (actual_name, owner, dblink, synonym) = (None, None, None, None)
-        if oracle_resolve_synonyms:
-            (actual_name, owner, dblink, synonym) = dialect._resolve_synonym(
-                self.conn,
-                desired_owner=dialect._denormalize_name(table.schema),
-                desired_synonym=dialect._denormalize_name(table.name)
-            )
-
         # some properties that need to be figured out
         fk_use_existing = True