Skip Menu |

This queue is for tickets about the Class-DBI CPAN distribution.

Report information
The Basics
Id: 1731
Status: resolved
Priority: 0/
Queue: Class-DBI

People
Owner: Nobody in particular
Requestors: simon [...] simon-cozens.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Date: Mon, 28 Oct 2002 10:07:32 +0000
From: Simon Cozens <simon [...] simon-cozens.org>
To: bug-Class-DBI [...] rt.cpan.org
Subject: Infinite recursion
So I'm learning Class::DBI, for some reason... :-) Accidentally, I called ->retrieve on the top-level class, not on the table's class, and got an infinite recursion. You can simulate this by doing perl -MClass::DBI -e 'print Class::DBI->retrieve(1)' -- Rule the Empire through force. -- Shogun Tokugawa
Date: Mon, 28 Oct 2002 11:05:08 +0000
From: Tony Bowden <tony [...] kasei.com>
To: Simon Cozens via RT <bug-Class-DBI [...] rt.cpan.org>
Subject: Re: [cpan #1731] Infinite recursion
RT-Send-Cc:
On Mon, Oct 28, 2002 at 05:07:37AM -0500, Simon Cozens via RT wrote: Show quoted text
> So I'm learning Class::DBI, for some reason... :-)
*grin* Show quoted text
> Accidentally, I called ->retrieve on the top-level class, not on the table's > class, and got an infinite recursion. You can simulate this by doing > perl -MClass::DBI -e 'print Class::DBI->retrieve(1)'
On the current beta version (which you probably want to try): http://www.tmtm.com/Class-DBI-0.90_03.tar.gz I get an entirely different error: Failure while doing '' with 'SearchSQL in Class::DBI' Can't locate object method "db_Main" via package "Class::DBI" at /usr/local/share/perl/5.8.0/Ima/DBI.pm line 423. at -e line 1 No sth at /usr/local/share/perl/5.8.0/Class/DBI.pm line 685. This all happens, obviously enough, as there's no database connection set up yet. I'll see if I can find a convenient place to insert a sensible error. Thanks, Tony
[tony@kasei.com - Mon Oct 28 06:05:19 2002]: Show quoted text
> This all happens, obviously enough, as there's no database connection > set up yet. > I'll see if I can find a convenient place to insert a sensible error.
The latest beta should handle this case better: http://www.tmtm.com/Class-DBI-0.90_04.tar.gz I've marked this as closed. If you've any further issues, please be sure to let me know :) Thanks, Tony