Make postgres type name resolution case-insensitive

This commit is contained in:
Kristy Brambila 2020-04-07 18:14:13 -07:00 committed by Ryan Leckey
parent 466b6d6bed
commit 0e61642165

View File

@ -262,7 +262,7 @@ impl PgConnection {
// language=SQL
let (oid,): (u32,) = query_as(
"
SElECT oid FROM pg_catalog.pg_type WHERE typname = $1
SELECT oid FROM pg_catalog.pg_type WHERE typname ILIKE $1
",
)
.bind(name)