1. Peter Sheats
  2. htsql


Kirill Simonov  committed f8b8dfc

Postgresql introspector should ignore dropped columns that are still in the catalog.

  • Participants
  • Parent commits bf3d72a
  • Branches default

Comments (0)

Files changed (1)

File src/htsql_pgsql/introspect.py

View file
  • Ignore whitespace
         for relid, num in sorted(self.meta.pg_attribute_by_class[table_oid]):
             att = self.meta.pg_attribute[relid, num]
             name = att.attname
+            if att.attisdropped:
+                continue
             if not self.permit_column(schema_name, table_name, name):
             domain = self.introspect_domain(relid, num)