mirror of
https://github.com/ent/ent.git
synced 2026-05-04 16:40:55 +03:00
dialect/sql/schema: minor style changes (#1088)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user