[CDBI] Having a column named 'id' as part of a multi-column primary key

Randal L. Schwartz merlyn at stonehenge.com
Wed Aug 10 09:07:22 BST 2005

>>>>> "Scotty" == Scotty Allen <lists at scottyallen.com> writes:

Scotty> Is there any reason the above code shouldn't read:

Yes.  What happens when I call $row->id?  What do I get?  Just
the individual column, or the entire multicolumn ID?

->id is reserved for a reason!

Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

More information about the ClassDBI mailing list