Re: Problems with delete

[prev] [thread] [next] [Date index for 2005/02/22]

From: JJ Merelo
Subject: Re: Problems with delete
Date: 14:44 on 22 Feb 2005
Hi again:

On Tue, 14 Dec 2004 12:38:36 +0100, JJ Merelo <jjmerelo@xxxxx.xxx> wrote:
> Hi again,
> I'm having trouble using the humble and simple 'delete'. Here's a bit of code:
> --
> 
> $persona->add_to_roles( { simposio_codigo => 'S0', rol_tipo => 'metachair' } );
> my @roles = $persona->roles;
> is( $roles[0]->rol_tipo, 'metachair' );
> $roles[0]->delete;
> 
> --
> 
> Which issues the not-so-humble error:
> --
> Attempt to free unreferenced scalar: SV 0xa0ad34c at
> /usr/lib/perl5/5.8.3/Test/Builder.pm line 1329.
>         Test::Builder::_ending('Test::Builder=ARRAY(0x9af33d4)') called at
> /usr/lib/perl5/5.8.3/Test/Builder.pm line 1373
>         Test::Builder::END() called at
> /opt/home/jmerelo/progs/CEDI/perl/t/01-persona.t line 0
>         eval {...} called at /opt/home/jmerelo/progs/CEDI/perl/t/01-persona.t line 0
> --
> 

I have a similar problem again. I seem to remember it was an error in
DBI or DBI::Pg, and that the solution was to patch and reinstall.
However, I seem to have lost the patch. Can somebody please help me?

JJ

Problems with delete
JJ Merelo 11:38 on 14 Dec 2004

Re: Problems with delete
Perrin Harkins 21:06 on 14 Dec 2004

Re: Problems with delete
JJ Merelo 14:44 on 22 Feb 2005

Generated at 11:30 on 23 Feb 2005 by mariachi v0.52