]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
dont continue remote table if warning
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 4 Mar 2007 18:09:43 +0000 (18:09 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 4 Mar 2007 18:09:43 +0000 (18:09 +0000)
lib/sqlalchemy/databases/oracle.py

index d53de065482c519673e5c152ac500d00b00fc260..8d112fc460b108189c55825dee67576db15ec8d2 100644 (file)
@@ -373,6 +373,7 @@ class OracleDialect(ansisql.ANSIDialect):
                 if remote_table is None:
                     # ticket 363
                     self.logger.warn("Got 'None' querying 'table_name' from all_cons_columns%(dblink)s - does the user have proper rights to the table?" % {'dblink':dblink})
+                    continue
                 refspec = ".".join([remote_table, remote_column])
                 schema.Table(remote_table, table.metadata, autoload=True, autoload_with=connection, owner=remote_owner)
                 if local_column not in fk[0]: