[Dbix-class] deployment bug with DBIC running from PAR when used with Pg?

Toby Corkindale toby.corkindale at strategicdata.com.au
Tue Jan 27 08:42:23 GMT 2009


Hi,
I seem to have hit an issue in a specific case:
Deployment, to a Postgres DB, when DBIx::Class is running from a PAR file.
The crux is that DBIx::Class::Storage::DBI::Pg has overridden 
sqlt_type() to return 'PostgreSQL' rather than the default behaviour 
from DBIx::Class::Storage::DBI, which just returns $dbh->{Driver}{Name}.
The long form of the name is required when calling out to 
SQL::Translator, in order that it finds the correct Producer module.

However, when running from a PAR file, for some reason the 
Class::C3::Componentised::ensure_class_loaded() method is failing to 
find and load DBIx::Class::Storage::DBI::Pg during 
DBIx::Class::Schema::Storage::DBI::_populate_dbh() around line 1639 (of 
version 0.08010).

I've verified that the PAR file does actually contain that Pg.pm in the 
correct place..

but I wondered if anyone else had seen this problem, or had an idea 
where I should be looking next?

Cheers,
Toby



More information about the DBIx-Class mailing list