On Fri, May 14, 2004 at 09:02:42PM -0400, leegold wrote:
>
> .....
> > > Can't locate object method "ad_catalog" via package "DBI::db" at
> > > threesharp.pl line 9.
> > >
> > > my $dbh = DBI->connect('dbi:AnyData(RaiseError=1):');
> > > $dbh->ad_catalog( $table_name, 'ThreeSharp', $file_name);
> >
> > It sounds like you have an older version of DBI (<1.37), for that you
> > need to use the old funky "func" style of calling driver methods, so
> > that same line would be:
> >
> > $dbh->func( $table_name, 'ThreeSharp', $file_name, >'ad_catalog');
>
> You are correct, that is the fix, and it works great.
But be aware that the func() method bypasses RaiseError/PrintError checks.
Upgrading the DBI is the best path.
Tim.