dialect/sql/schema: support postgres geometric types (#2340)

This commit is contained in:
Thomas Prebble
2022-02-18 15:08:25 +00:00
committed by GitHub
parent 1c79730d12
commit ce9641e1ae
2 changed files with 16 additions and 1 deletions

View File

@@ -286,6 +286,8 @@ func (d *Postgres) scanColumn(c *Column, rows *sql.Rows) error {
c.Type = field.TypeUUID
case "cidr", "inet", "macaddr", "macaddr8":
c.Type = field.TypeOther
case "point", "line", "lseg", "box", "path", "polygon", "circle":
c.Type = field.TypeOther
case "ARRAY":
c.Type = field.TypeOther
if !udt.Valid {