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()
File "src/libs/sqlalchemy/orm/mapper.py", line 518, in _compile_tables
raise exceptions.ArgumentError("Could not assemble any primary key
columns for mapped table '%s'" % (self.mapped_table.name))
sqlalchemy.exceptions.ArgumentError: Could not assemble any primary key
columns for mapped table 'themes'
SA 0.3.7
I found http://groups.google.com/group/sqlalchemy/msg/a5defe6ddb265f48
but he was creating a mapper to a view. In this case the primary key is
defined in the table, right?
What is wrong?
Thanks.
David
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---