2
0

add filter for dropped attributes in getCompositeType

This commit is contained in:
Felix Röhrich
2023-02-07 00:51:30 +01:00
committed by Jack Christensen
parent 190c05cc24
commit fa5fbed497
2 changed files with 20 additions and 1 deletions
+1 -1
View File
@@ -1282,7 +1282,7 @@ func (c *Conn) getCompositeFields(ctx context.Context, oid uint32) ([]pgtype.Com
var fieldOID uint32
rows, _ := c.Query(ctx, `select attname, atttypid
from pg_attribute
where attrelid=$1
where attrelid=$1 and not attisdropped
order by attnum`,
typrelid,
)