Ticket #13565: 13565.diff

File 13565.diff, 730 bytes (added by ikelly, 4 years ago)
  • django/db/backends/oracle/introspection.py

     
    3939
    4040    def get_table_list(self, cursor):
    4141        "Returns a list of table names in the current database."
    42         cursor.execute("SELECT TABLE_NAME FROM USER_TABLES")
     42        cursor.execute("""
     43    SELECT TABLE_NAME FROM USER_TABLES
     44    UNION
     45    SELECT VIEW_NAME FROM USER_VIEWS
     46    UNION
     47    SELECT SYNONYM_NAME FROM USER_SYNONYMS""")
    4348        return [row[0].lower() for row in cursor.fetchall()]
    4449
    4550    def get_table_description(self, cursor, table_name):
Back to Top