Skip Menu |

This queue is for tickets about the Set-Object CPAN distribution.

Report information
The Basics
Id: 5839
Status: resolved
Priority: 0/
Queue: Set-Object

People
Owner: SAMV [...] cpan.org
Requestors: lists [...] shortestpath.org
Cc:
AdminCc:

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



Subject: Sets of Class::DBI objects do not work
If I populate one Set::Object with several Class::DBI objects relating to an SQL "select ... where something = value1" statement, and another Set::Object with several Class::DBI objects relating to a different SQL "select ... where something_else = value2" statement the intersection of these sets should be the equivalent of ANDing the two WHERE clauses. It is not. This implies that Class::DBI objects containing the same data are not seen as identical by Set::Object. I originally discussed this on Perlmonks and sample code can be found there. The thread begins on http://perlmonks.org/index.pl?node_id=339718
Please confirm that the objects that are trying to be intersected are actually the same object. This can be done using the `refaddr' function, in Scalar::Util. [guest - Tue Mar 30 11:04:59 2004]: Show quoted text
> If I populate one Set::Object with several Class::DBI objects relating > to an SQL "select ... where something = value1" statement, and > another Set::Object with several Class::DBI objects relating to a > different SQL "select ... where something_else = value2" statement > the intersection of these sets should be the equivalent of ANDing > the two WHERE clauses. > > It is not. This implies that Class::DBI objects containing the same > data are not seen as identical by Set::Object. > > I originally discussed this on Perlmonks and sample code can be found > there. The thread begins on > http://perlmonks.org/index.pl?node_id=339718