Skip to content

Commit

Permalink
Fix duplicate Schema.Enums for Postges.
Browse files Browse the repository at this point in the history
Fixes issue gnormal#115
  • Loading branch information
freb committed Feb 27, 2019
1 parent 32b8fe6 commit 3d65206
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion database/drivers/postgres/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,6 @@ func queryEnums(log *log.Logger, db *sql.DB, schemas []string) (map[string][]*da
SELECT n.nspname, t.typname as type
FROM pg_type t
LEFT JOIN pg_catalog.pg_namespace n ON n.oid = t.typnamespace
JOIN pg_enum e ON t.oid = e.enumtypid
WHERE (t.typrelid = 0 OR (SELECT c.relkind = 'c' FROM pg_catalog.pg_class c WHERE c.oid = t.typrelid))
AND NOT EXISTS(SELECT 1 FROM pg_catalog.pg_type el WHERE el.oid = t.typelem AND el.typarray = t.oid)
AND n.nspname IN (%s)`
Expand Down

0 comments on commit 3d65206

Please sign in to comment.