Christian Schwanke wrote:
>
> Hi Michael,
>
> thanks for your quick reply (again).
> I'm currently on the 0.6 branch after I ran into the first problem a
> few days ago but in my actual schema, the autogenerated ID in the
> second PK-column is referenced by another table that is mapped as a
> one-to-many relation. When persisting the model with an entry in the
> unsaved relation, the generated id is not "cascaded" to the related
> item, when autoincrement is set to False on the id column (using the
> execute_at solution to fix the table definition).

but this is exactly the bug I fixed this weekend.   you do need
autoincrement=True on the column that reports its newly generated value
via cursor.lastrowid, and I would turn off autoincrement=True on any other
primary key columns.  if that doesn't work please post a full test case on
trac.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to