On May 4, 2007, at 9:17 AM, ml wrote:
>
> Hi!
>
> I have a few tables with non-integer primary keys. Following raises an
> exception:
>
> meta = MetaData(name="somemeta")
> themes = table("themes", meta,
> Column("title", Unicode(30), primary_key=True),
> )
> class Theme(object): pass
> mapper(Theme, themes).compile()
youre using the wrong table constructor. try Table().
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sqlalchemy" 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/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---