From: Jonathan Ellis Date: Fri, 3 Aug 2007 04:01:41 +0000 (+0000) Subject: table_names shouldn't include system tables. (if user wants that they should poke... X-Git-Tag: rel_0_4beta1~101 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4b524f9b3455a75466fb4658c6bdd1eab96fa7c;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git table_names shouldn't include system tables. (if user wants that they should poke around in catalog manually.) --- diff --git a/lib/sqlalchemy/databases/oracle.py b/lib/sqlalchemy/databases/oracle.py index e5411481f4..f183b1e4ed 100644 --- a/lib/sqlalchemy/databases/oracle.py +++ b/lib/sqlalchemy/databases/oracle.py @@ -367,7 +367,7 @@ class OracleDialect(ansisql.ANSIDialect): def table_names(self, connection, schema): # sorry, I have no idea what that dblink stuff is about :) - s = "select table_name from all_tables" + s = "select table_name from all_tables where tablespace_name NOT IN ('SYSTEM', 'SYSAUX')" return [row[0] for row in connection.execute(s)] def reflecttable(self, connection, table, include_columns):