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

Report information
The Basics
Id:
4344
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
swartz [...] pobox.com
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
(no value)



From: "Jonathan Swartz" <swartz@pobox.com>
To: <cdbi-talk@groups.kasei.com>
Subject: small bug with column declaration
Date: Sun, 9 Nov 2003 07:47:25 -0800
If you declare columns like this: __PACKAGE__->columns (All => qw(foo bar baz)) __PACKAGE__->columns (Primary => qw(baz)); then the foo() accessor does not work until the object is fleshed out by some other method, because the foo column is still considered to be in the primary column group. Switching the lines made it work. It's just that this order used to work in previous versions of Class::DBI, before the automatic assigning of first column as primary key. Jon
[swartz@pobox.com - Mon Nov 10 02:43:38 2003]:
Show quoted text
> If you declare columns like this: > __PACKAGE__->columns (All => qw(foo bar baz)) > __PACKAGE__->columns (Primary => qw(baz)); > then the foo() accessor does not work until the object is fleshed out > by some other method, because the foo column is still considered to be > in the primary column group.
I can't replicate this, so I'm guessing I must have fixed it before! If this is still broken, can you let me know. Thanks, Tony


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

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