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

Scotty Allen lists at scottyallen.com
Thu Aug 11 17:49:50 BST 2005


On Thu, 2005-08-11 at 09:31 -0700, Randal L. Schwartz wrote:
> >>>>> "Scotty" == Scotty Allen <lists at scottyallen.com> writes:
> 
> Scotty> However, this all raises a separate question: what do you do
> Scotty> when you're retrofitting cdbi on top of an existing schema,
> Scotty> that may have namespace collisions between columns and cdbi
> Scotty> reserved names?  Is there a way to remap a column to a
> Scotty> different accessor name?  Or another trick I don't know of?
> 
> Will the strategy under "Changing your column accessor method names"
> on the manpage suffice?

Ack, yes, thanks:) Should be more than sufficient for what I want to do.
Kingsley, thanks for the example as well.

-Scotty





More information about the ClassDBI mailing list