Skip to content

Commit 028caa1

Browse files
authored
Merge pull request #1365 from mattdbush/master
Use coalesce to use column_full_type when column_type is null
2 parents 4dc3ce2 + a256566 commit 028caa1

File tree

1 file changed

+1
-1
lines changed
  • drivers/sqlboiler-psql/driver

1 file changed

+1
-1
lines changed

drivers/sqlboiler-psql/driver/psql.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ func (p *PostgresDriver) Columns(schema, tableName string, whitelist, blacklist
567567

568568
query := fmt.Sprintf(`SELECT
569569
column_name,
570-
column_type,
570+
COALESCE(column_type, column_full_type) as column_type,
571571
column_full_type,
572572
udt_name,
573573
array_type,

0 commit comments

Comments
 (0)