mirror of https://github.com/jackc/pgx.git
parent
3404529457
commit
53b4280456
2
conn.go
2
conn.go
|
@ -388,7 +388,7 @@ func (c *Conn) initConnInfo() error {
|
||||||
from pg_type t
|
from pg_type t
|
||||||
left join pg_type base_type on t.typelem=base_type.oid
|
left join pg_type base_type on t.typelem=base_type.oid
|
||||||
where (
|
where (
|
||||||
t.typtype in('b', 'p', 'r')
|
t.typtype in('b', 'p', 'r', 'e')
|
||||||
and (base_type.oid is null or base_type.typtype in('b', 'p', 'r'))
|
and (base_type.oid is null or base_type.typtype in('b', 'p', 'r'))
|
||||||
)`)
|
)`)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -204,7 +204,7 @@ func AcceptUnauthenticatedConnRequestSteps() []Step {
|
||||||
func PgxInitSteps() []Step {
|
func PgxInitSteps() []Step {
|
||||||
steps := []Step{
|
steps := []Step{
|
||||||
ExpectMessage(&pgproto3.Parse{
|
ExpectMessage(&pgproto3.Parse{
|
||||||
Query: "select t.oid, t.typname\nfrom pg_type t\nleft join pg_type base_type on t.typelem=base_type.oid\nwhere (\n\t t.typtype in('b', 'p', 'r')\n\t and (base_type.oid is null or base_type.typtype in('b', 'p', 'r'))\n\t)",
|
Query: "select t.oid, t.typname\nfrom pg_type t\nleft join pg_type base_type on t.typelem=base_type.oid\nwhere (\n\t t.typtype in('b', 'p', 'r', 'e')\n\t and (base_type.oid is null or base_type.typtype in('b', 'p', 'r'))\n\t)",
|
||||||
}),
|
}),
|
||||||
ExpectMessage(&pgproto3.Describe{
|
ExpectMessage(&pgproto3.Describe{
|
||||||
ObjectType: 'S',
|
ObjectType: 'S',
|
||||||
|
|
Loading…
Reference in New Issue