Fix for PostgreSQL enums not in the schema search path (RT#123234)
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Tue, 10 Oct 2017 12:47:26 +0000 (13:47 +0100)
committerDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Tue, 10 Oct 2017 14:29:10 +0000 (15:29 +0100)
commita07eab0a070a742540c0cf432c651c0be0a3b9e7
tree81d5cfcef9366d7a81fd723b0f629fa1a9f9b80c
parent306bf770bf08b06f92863808b1938f2fc704acb0
Fix for PostgreSQL enums not in the schema search path (RT#123234)

Cast the data type name to regtype instead of comparing it directly to
pg_catalog.pg_type.typname, so that schema-qualified type names are
interpreted correctly.

In passing, change the queries to use $data_type instead of
$info->{data_type}, for consistency.
Changes
lib/DBIx/Class/Schema/Loader/DBI/Pg.pm
t/10_03pg_common.t