[SOLVED: cdbi-L-pg need fix ] Re: problem after upgrading..
[prev]
[thread]
[next]
[Date index for 2005/05/25]
After some testng and browsing the code.....seems that..
Class::DBI::Loader::Pg needs updating :
sub _tables {
my $self = shift;
my $dbh = DBI->connect( @{ $self->{_datasource} } ) or croak($DBI::errstr);
my @tables;
if ( $DBD::Pg::VERSION >= 1.31 ) {
return $dbh->tables( undef, "public", "", "table", { noprefix => 1 } );# <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
}
else { return $dbh->tables }
}
Instead "noprefix" it should be "pg_noprefix" (or at least this is what DBD::Pg ver 1.41 uses)
Hm as I'm writing this.....there was some problems accessing CPAN...
... now it show up and I see the new ver .20 of Class::DBI::Loader::Pg has corrected this...but for some reason
g-cpan.pl Class::DBI::Loader::Pg
(Gentoo way to make perl modules a normal package, so that u can safely merge/unmerge and track depencities)
think there is no newer version of it..... so
perl -MCPAN -e 'install Class::DBI::Loader::Pg'
solved the problem... :"))