]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
table_names shouldn't include system tables. (if user wants that they should poke...
authorJonathan Ellis <jbellis@gmail.com>
Fri, 3 Aug 2007 04:01:41 +0000 (04:01 +0000)
committerJonathan Ellis <jbellis@gmail.com>
Fri, 3 Aug 2007 04:01:41 +0000 (04:01 +0000)
lib/sqlalchemy/databases/oracle.py

index e5411481f464ffc150ea5af5e5d0564e04e04031..f183b1e4edb48e646d2a5a17d8a3334d758bc409 100644 (file)
@@ -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):