Re: mod_perl and global %Live_Objects not being initialized

[prev] [thread] [next] [Date index for 2004/11/17]

From: Tim Bunce
Subject: Re: mod_perl and global %Live_Objects not being initialized
Date: 15:42 on 17 Nov 2004
On Wed, Nov 17, 2004 at 11:10:45AM +0000, Tony Bowden wrote:
> On Tue, Nov 16, 2004 at 05:44:37PM +0000, Tim Bunce wrote:
> > The rest of the patch was about making retrieve() use the object index.
> > I've attached the patches.
> > Tony, what's the status of these?
> 
> They've mostly been applied.
> 
> The biggest outstanding patch of yours not applied that I know of is the
> rewrite of search() as I can't easily apply it with changes that have
> already been made (but which aren't finalised yet).

Okay.

> > Tony, if you make a (development?) release/tarball available I'll
> > do some more basic refactoring around Live_Objects for you.
> 
> http://www.tmtm.com/CPAN/Class-DBI-0.96_50.tar.gz
> 
> This is not recommend for installation yet, as there are several
> significant changes that are not yet finished. I'm still not sure
> whether they'll be finished for a new release, or whether they need to be.

I get lots of these errors from the test suite: dbih_setup_fbav: invalid number of fields: 0, NUM_OF_FIELDS attribute probably not set right at .../DBIx/ContextualFetch.pm line 88.

caused by .../blib/lib/Class/DBI/Test/SQLite.pm:

sub _create_test_table {
        my $class = shift;
        my @vals  = $class->sql__table_pragma->select_row;
        $class->sql__create_me($class->create_sql)->execute unless @vals;
}

Where sql__table_pragma uses "PRAGMA table_info(Movies)"
That execute()s fine but it seems the driver doesn't think it's
a SELECT-like statement and so hasn't setup the NUM_OF_FIELDS attribute.

I'm using DBD::SQLite 0.25. Looks like the test code doesn't check
the DBD::SQLite version. Should it? Do I need to upgrade?

Tim.

(message missing)

Re: mod_perl and global %Live_Objects not being initialized
Tim Bunce 15:42 on 17 Nov 2004

Re: mod_perl and global %Live_Objects not being initialized
=?ISO-8859-1?Q?Ask_Bj=F8rn_Hansen?= 03:02 on 19 Nov 2004

Generated at 17:31 on 15 Feb 2005 by mariachi v0.52