Skip Menu |

This queue is for tickets about the DBD-Mock CPAN distribution.

Report information
The Basics
Id: 117162
Status: resolved
Priority: 0/
Queue: DBD-Mock

People
Owner: Nobody in particular
Requestors: Sebastian.Rose [...] mentana.de
Cc:
AdminCc:

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



Subject: Can't use an undefined value as an ARRAY reference
Date: Tue, 23 Aug 2016 13:51:54 +0000
To: "bug-DBD-Mock [...] rt.cpan.org" <bug-DBD-Mock [...] rt.cpan.org>
From: Sebastian Rose <Sebastian.Rose [...] mentana.de>
Hallo everyone, I use DBD::Mock::Session here for testing. Lately, I ran into a problem using DBD::Mock::Session in a loop. Once the list of statements is exhaustet, the error you get is not useful: DBD::Mock::st execute failed: Session Error: Can't use an undefined value as an ARRAY reference at /usr/share/perl5/DBD/Mock.pm line 624 I've been searching my own code for errors for quite a while... :( I'd expect a somewhat more helpful error message from the library. How about DBD::Mock::st execute failed: Session Error: Number of configured statements exceeded at /usr/share/perl5/DBD/Mock.pm line 624 Or something along these lines? Best wishes, Sebastian Rose
Download smime.p7s
application/pkcs7-signature 5.1k

Message body not shown because it is not plain text.

Hi Sebastian, I've recently picked up the DBD::Mock module and I'm trying to clear out some of the older support cases for it. I've tried to recreate the error message you reported but I just get the following error: DBD::Mock::st execute failed: Session Error: Session states exhausted, only '2' in DBD::Mock::Session (DBD::Mock::Session=HASH(0x7fffb9a949f0)->name}) at cpan/lib/perl5/DBD/Mock/Session.pm line 81. at test.pl line 33. Could you let me know if this is the error you're now seeing when you exhaust a DBD::Mock::Session, and if it isn't do you have some example code that produces the error you were encountering. Regards, Jason. On Tue Aug 23 09:52:12 2016, Sebastian.Rose@mentana.de wrote: Show quoted text
> Hallo everyone, > > I use DBD::Mock::Session here for testing. > > Lately, I ran into a problem using DBD::Mock::Session in a loop. Once > the > list of statements is exhausted, the error you get is not useful: > > DBD::Mock::st execute failed: Session Error: Can't use an undefined > value > as an ARRAY reference at /usr/share/perl5/DBD/Mock.pm line 624 > > I've been searching my own code for errors for quite a while... :( > > > I'd expect a somewhat more helpful error message from the library. > How about > > DBD::Mock::st execute failed: Session Error: Number of configured > statements exceeded at /usr/share/perl5/DBD/Mock.pm line 624 > > Or something along these lines? > > Best wishes, > > Sebastian Rose
Subject: AW: [rt.cpan.org #117162] Can't use an undefined value as an ARRAY reference
Date: Tue, 3 Sep 2019 13:49:56 +0000
To: "bug-DBD-Mock [...] rt.cpan.org" <bug-DBD-Mock [...] rt.cpan.org>
From: Sebastian Rose <Sebastian.Rose [...] mentana.de>
Hey Jason, I don't quite remember this case - it's so long since I wrote the "bug" report. The systems I use here at work are quite old. Unfortunately, the file /usr/share/perl5/DBD/Mock/Session.pm on my test system does not feature a version. Neither as $VERSION nor a sub named 'VERSION'. But it was installed a spart oft he Debian package libdbd-mock-perl 1.45-2 (this is on Debian 9). The bug report might as well be obsolete, since we started the projects I use the module on Debian 6 - which we used for quite a long time. I'll try to trigger the error and send you the results. Mit freundlichen Grüßen, Sebastian Rose Software-Entwickler Show quoted text
-----Ursprüngliche Nachricht----- Von: Jason Cooper via RT [mailto:bug-DBD-Mock@rt.cpan.org] Gesendet: Dienstag, 3. September 2019 15:12 An: Sebastian Rose Betreff: [rt.cpan.org #117162] Can't use an undefined value as an ARRAY reference <URL: https://rt.cpan.org/Ticket/Display.html?id=117162 > Hi Sebastian, I've recently picked up the DBD::Mock module and I'm trying to clear out some of the older support cases for it. I've tried to recreate the error message you reported but I just get the following error: DBD::Mock::st execute failed: Session Error: Session states exhausted, only '2' in DBD::Mock::Session (DBD::Mock::Session=HASH(0x7fffb9a949f0)->name}) at cpan/lib/perl5/DBD/Mock/Session.pm line 81. at test.pl line 33. Could you let me know if this is the error you're now seeing when you exhaust a DBD::Mock::Session, and if it isn't do you have some example code that produces the error you were encountering. Regards, Jason. On Tue Aug 23 09:52:12 2016, Sebastian.Rose@mentana.de wrote:
> Hallo everyone, > > I use DBD::Mock::Session here for testing. > > Lately, I ran into a problem using DBD::Mock::Session in a loop. Once > the list of statements is exhausted, the error you get is not useful: > > DBD::Mock::st execute failed: Session Error: Can't use an undefined > value as an ARRAY reference at /usr/share/perl5/DBD/Mock.pm line 624 > > I've been searching my own code for errors for quite a while... :( > > > I'd expect a somewhat more helpful error message from the library. > How about > > DBD::Mock::st execute failed: Session Error: Number of configured > statements exceeded at /usr/share/perl5/DBD/Mock.pm line 624 > > Or something along these lines? > > Best wishes, > > Sebastian Rose
Download smime.p7s
application/pkcs7-signature 4.8k

Message body not shown because it is not plain text.

Hi, As part of a release for DBD::Mock I've renamed a few of the unit test files to help related them to reported tickets and I found one that seems to match your issue perfectly (which I've renamed to t/bug_117162.t). I'll resolve this case as that test passes, but if you do come across the issue again or can recreate it then please reopen this case (or log a new issue) and I'll take another look at it. Regards, Jason. On Tue Sep 03 09:51:23 2019, Sebastian.Rose@mentana.de wrote: Show quoted text
> Hey Jason, > > I don't quite remember this case - it's so long since I wrote the > "bug" report. The systems I use here at work are quite old. > Unfortunately, the file /usr/share/perl5/DBD/Mock/Session.pm on my > test system does not feature a version. Neither as $VERSION nor a sub > named 'VERSION'. But it was installed a spart oft he Debian package > libdbd-mock-perl 1.45-2 (this is on Debian 9). > > The bug report might as well be obsolete, since we started the > projects I use the module on Debian 6 - which we used for quite a long > time. > > I'll try to trigger the error and send you the results. > > > Mit freundlichen Grüßen, > Sebastian Rose > Software-Entwickler > > > -----Ursprüngliche Nachricht----- > Von: Jason Cooper via RT [mailto:bug-DBD-Mock@rt.cpan.org] > Gesendet: Dienstag, 3. September 2019 15:12 > An: Sebastian Rose > Betreff: [rt.cpan.org #117162] Can't use an undefined value as an > ARRAY reference > > <URL: https://rt.cpan.org/Ticket/Display.html?id=117162 > > > Hi Sebastian, > I've recently picked up the DBD::Mock module and I'm trying to clear > out some of the older support cases for it. I've tried to recreate the > error message you reported but I just get the following error: > > > DBD::Mock::st execute failed: Session Error: Session states exhausted, > only '2' in DBD::Mock::Session > (DBD::Mock::Session=HASH(0x7fffb9a949f0)->name}) at > cpan/lib/perl5/DBD/Mock/Session.pm line 81. at test.pl line 33. > > > Could you let me know if this is the error you're now seeing when you > exhaust a DBD::Mock::Session, and if it isn't do you have some example > code that produces the error you were encountering. > > Regards, > Jason. > > > On Tue Aug 23 09:52:12 2016, Sebastian.Rose@mentana.de wrote:
> > Hallo everyone, > > > > I use DBD::Mock::Session here for testing. > > > > Lately, I ran into a problem using DBD::Mock::Session in a loop. > > Once > > the list of statements is exhausted, the error you get is not useful: > > > > DBD::Mock::st execute failed: Session Error: Can't use an undefined > > value as an ARRAY reference at /usr/share/perl5/DBD/Mock.pm line 624 > > > > I've been searching my own code for errors for quite a while... :( > > > > > > I'd expect a somewhat more helpful error message from the library. > > How about > > > > DBD::Mock::st execute failed: Session Error: Number of configured > > statements exceeded at /usr/share/perl5/DBD/Mock.pm line 624 > > > > Or something along these lines? > > > > Best wishes, > > > > Sebastian Rose