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)



Subject: die on empty results
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
[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.