From: Randall Smith Date: Sat, 25 Apr 2009 18:41:11 +0000 (+0000) Subject: removed unecessary oracle specific logic X-Git-Tag: rel_0_6_6~223 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de1b1a35adab022d4f7ed772324b78acad590b75;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git removed unecessary oracle specific logic --- diff --git a/lib/sqlalchemy/engine/reflection.py b/lib/sqlalchemy/engine/reflection.py index a21332cd8a..6cbb2e2be2 100644 --- a/lib/sqlalchemy/engine/reflection.py +++ b/lib/sqlalchemy/engine/reflection.py @@ -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