Skip to content

Commit

Permalink
Merge pull request #1 from csueiras/fix-schema-name-codegen-for-enums
Browse files Browse the repository at this point in the history
Schema name predicate for enum generating query
  • Loading branch information
ottaviohartman authored Dec 30, 2020
2 parents 1a2b076 + 4dca718 commit 9782883
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/sqlboiler-psql/driver/psql.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ func (p *PostgresDriver) Columns(schema, tableName string, whitelist, blacklist
(
select typelem
from pg_type
where pg_type.typtype = 'b' and pg_type.typname = ('_' || c.udt_name)
where pg_type.typtype = 'b' and pg_type.typname = ('_' || c.udt_name) and pg_namespace.nspname=$1
limit 1
)
order by pg_enum.enumsortorder
Expand Down

0 comments on commit 9782883

Please sign in to comment.