Skip to content

Commit

Permalink
Merge pull request #1365 from mattdbush/master
Browse files Browse the repository at this point in the history
Use coalesce to use column_full_type when column_type is null
  • Loading branch information
stephenafamo committed Mar 27, 2024
2 parents 4dc3ce2 + a256566 commit 028caa1
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 @@ -567,7 +567,7 @@ func (p *PostgresDriver) Columns(schema, tableName string, whitelist, blacklist

query := fmt.Sprintf(`SELECT
column_name,
column_type,
COALESCE(column_type, column_full_type) as column_type,
column_full_type,
udt_name,
array_type,
Expand Down

0 comments on commit 028caa1

Please sign in to comment.