This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.
Subject: Re: DBD::RAM and the catalog method From: Jeff Zucker <jeff@vpservices.com> Date: Wed, 06 Sep 2000 09:14:37 -0700 Ron Hall wrote: > $dbh->func([ > [ 'toys', 'CSV', 'table.dat', > { col_names => 'toy,shape,colour,quantity'}], > ], 'catalog') > || die "Cannot connect: $DBI::errstr\n" unless $dbh; Sorry, there is a bug in the catalog function such that it does not return a true value even when it is true. Simply remove the "|| die ..." part of your code on this call and it should work fine. This will not impact your code at all since there is no reason to check the catalog statement -- any DBI errors will be raised by your prepare, execute, etc. statements if there are problems. Never-the-less, I'll make it return true or false in the next release. === Subject: Re: DBD::RAM and the catalog method From: Tim Bunce <Tim.Bunce@ig.co.uk> Date: Wed, 6 Sep 2000 21:21:49 +0100 On Wed, Sep 06, 2000 at 09:39:40AM -0400, Ron Hall wrote: > > > $dbh->func(..., 'catalog') FYI... All driver private methods should have names that begin with the drivers private attribute prefix, ie $dbh->func(..., 'ram_catalog') Otherwise you'll get upset when, for example, I add a $dbh->catalog method to the DBI. ===