Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the DBIx-Abstract CPAN distribution.

Report information
The Basics
Id: 339
Status: resolved
Priority: 0/
Queue: DBIx-Abstract

People
Owner: Nobody in particular
Requestors: rho [...] bigpond.edu.au
Cc:
AdminCc:

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



MIME-Version: 1.0
X-Mailer: MIME-tools 5.405 (Entity 5.404)
Subject: die on empty results
Content-Type: multipart/mixed; boundary="----------=_1015839269-30179-3"
Content-Length: 0
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: iso-8859-1
Content-Length: 334
Download (untitled) / with headers
text/plain 334b
This seems to be broken since ages: 775c775,776 < return {%$result}; --- Show quoted text
> return ref($result) eq "HASH" ? {%$result} : undef; #{%$result}; > # return {%$result};
784c785,786 < return [@$result]; --- Show quoted text
> return ref($result) eq "ARRAY" ? @$result : []; > # return [@$result];
I suggest to create a test case for this. \rho
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: iso-8859-1
Content-Length: 0
MIME-Version: 1.0
X-Mailer: MIME-tools 5.405 (Entity 5.404)
Content-Type: multipart/mixed; boundary="----------=_1032912774-13969-9"
Content-Length: 0
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: iso-8859-1
Content-Length: 598
Download (untitled) / with headers
text/plain 598b
[DRRHO - Mon Mar 11 04:34:30 2002]: I've added this to my bug list. I'll fix in the next bug fix release. The problem is with the select_one_to_* and the select_all_to_* methods. They don't do any checking to see if they get a return result. Show quoted text
> This seems to be broken since ages: > > 775c775,776 > < return {%$result}; > ---
> > return ref($result) eq "HASH" ? {%$result} : undef; #{%$result}; > > # return {%$result};
> 784c785,786 > < return [@$result]; > ---
> > return ref($result) eq "ARRAY" ? @$result : []; > > # return [@$result];
In the future, please use unified diffs.
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: iso-8859-1
Content-Length: 0


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.