On 4/27/07, Victor Ng <[EMAIL PROTECTED]> wrote:
>
> The UniqueConstraint fails inside SQLAlchemy when referencing a
> foreign key field.
>
> So something like this:
>
>  30 class Foo(Entity):
>  31     belongs_to('bar', of_kind='Bar')
>  32     has_field('id', Integer(), primary_key=True)
>  33     using_mapper_options(extension=FooME())
>  34     using_table_options(UniqueConstraint('bar_id', 'id'))

In case you didn't spot it in the other theads, this should now work
fine with the latest version of the autodelay branch.

-- 
Gaƫtan de Menten
http://openhex.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SQLElixir" 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/sqlelixir?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to