Commits

Mike Bayer committed 602b8d9

- [bug] removed unnecessary table clause when
reflecting enums, [ticket:2510].

  • Participants
  • Parent commits 09962a5
  • Branches rel_0_7

Comments (0)

Files changed (2)

     being present on Py3K string.  
     [ticket:2503].
 
+- postgresql
+  - [bug] removed unnecessary table clause when
+    reflecting enums, [ticket:2510].  Courtesy
+    Gunnlaugur Þór Briem.
+
 - oracle
   - [bug] Added ROWID to oracle.*, [ticket:2483]
 

File lib/sqlalchemy/dialects/postgresql/base.py

                e.enumlabel as "label"
             FROM pg_catalog.pg_type t
                  LEFT JOIN pg_catalog.pg_namespace n ON n.oid = t.typnamespace
-                 LEFT JOIN pg_catalog.pg_constraint r ON t.oid = r.contypid
                  LEFT JOIN pg_catalog.pg_enum e ON t.oid = e.enumtypid
             WHERE t.typtype = 'e'
             ORDER BY "name", e.oid -- e.oid gives us label order