dialect/sql/schema: minor style changes (#1088)

This commit is contained in:
Ariel Mashraki
2020-12-27 20:12:55 +02:00
committed by GitHub
parent 7320b0d16c
commit 93e6a6cebd
3 changed files with 9 additions and 5 deletions

View File

@@ -254,11 +254,9 @@ func (d *Postgres) scanColumn(c *Column, rows *sql.Rows) error {
c.Type = field.TypeOther
case "USER-DEFINED":
c.Type = field.TypeOther
if !udt.Valid {
return fmt.Errorf("missing user defined type")
return fmt.Errorf("missing user defined type for column %q", c.Name)
}
c.SchemaType = map[string]string{dialect.Postgres: udt.String}
}
switch {