Skip Menu |

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

Report information
The Basics
Id: 4344
Status: resolved
Priority: 0/
Queue: Class-DBI

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

Bug Information
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