mirror of https://github.com/jackc/pgx.git
It's possible to define a type (e.g., an enum) with the same name in two different schemas. When initializing data types after connecting, types defined within schemas other than pg_catalog or public should be qualified with their schema name to disambiguate them and ensure all types with the same base name get added to the map of OID to type. Prior to this commit, the last type scanned would "win", and all others with the same name would be missing from the ConnInfo type maps, which would subsequently cause any PREPARE involving columns of those missing types to return the error "unknown oid". |
||
---|---|---|
.. | ||
pgmock.go |