Re: [Maypole] Maypole::Plugin::Relationships and YAML

From: Sebastian Riedel (sri at oook.de)
Date: Wed Feb 02 2005 - 20:39:22 GMT


Sebastian Riedel:
> > > >As Tony points out, CDBI makes an alias called 'id' -- in CDBI, not SQL
> > > > it doesn't touch your schema -- for your PK no matter what you call it.
> > > > So long as Maypole doesn't go generating SQL on its own, relying instead
> > > > on CDBI, this should not pose a conflict.
> > >
> > > It also uses column lists...
> >
> > OK but the column list in CDBI includes the alias of id for your PK, I
> > mean that's the point of an alias isn't it?
> > So is this or is this not, a priori, a problem?
>
> OH right! I never used anything different than id, so i didn't know the
> alias thing. =)
>
> It never was a "real" problem, since it's just in the factory
> templates...
>

Ok i've tested it now, and columns() does NOT return id!

-- 
sebastian

_______________________________________________ maypole mailing list maypole at lists.netthink.co.uk http://lists.netthink.co.uk/listinfo/maypole



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:58 GMT