"Jorge Vargas" <[EMAIL PROTECTED]> writes:
> On 8/4/06, Leandro Lucarella <[EMAIL PROTECTED]> wrote:
>
> On svn's SQLObject you can do this:
> nameIndex = DatabaseIndex(firstName, lastName, unique=True)
>
>
>
> that's a very nice feature, I hope TG moves there soon.
It is there already.
? TG uses 0.7 bugfix branch this feature is in trunk at least that's what I undestand by "at svn" which means sqlobject 0.8 needs to get out and we need to migrate to it.
But note that this is *not* a PK of two columns. It is a UNIQUE index.
You'll achieve almost the same thing but when you create a FK to this table it
will just mention the "id" column.
yes indeed I wasn't the original poster so I just find it a nice feature. now on the other hand having a FK to a compount PK isn't the best idea of all, but that is something else.
--
Jorge Godoy <[EMAIL PROTECTED] >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---
- [TurboGears] Re: SQLObject with primary key consists of ... Jorge Vargas
- [TurboGears] Re: SQLObject with primary key consist... Jorge Godoy
- [TurboGears] Re: SQLObject with primary key con... Jorge Vargas
- [TurboGears] Re: SQLObject with primary key... Jorge Godoy
- [TurboGears] Re: SQLObject with primary key... Leandro Lucarella
- [TurboGears] Re: SQLObject with primary key con... Leandro Lucarella

