lib / pq

Pure Go Postgres driver for database/sql
https://pkg.go.dev/github.com/lib/pq
MIT License
9.01k stars 910 forks source link

Return type MACADDR8 #934

Closed xhit closed 4 years ago

xhit commented 4 years ago

When I try to get all columns type of rows with rows.ColumnTypes() nothing is returned when column is MACADDR8

Example:

        types, _ := rows.ColumnTypes()
    for _, v := range types {
        log.Printf("%s", v.DatabaseTypeName())
    }

Documentation for this datatype: https://www.postgresql.org/docs/10/datatype-net-types.html#DATATYPE-MACADDR8

xhit commented 4 years ago

Solved with go run gen.go in OID folder