just curious, why would a primary key column want to be a foreign key
as well ? seems a little denormalized to me.
On Mar 1, 2006, at 7:36 PM, Robert Leftwich wrote:
Marko Mikulicic wrote:
if column.primary_key and isinstance(column.type, types.Integer)
and (column.default is None or (isinstance(column.default,
schema.Sequence) and column.default.optional)):
colspec += " SERIAL"
In addition, this has the same issue as autoincrement in mysql,
i.e. it adds SERIAL to the primary key when it is declared as a
foreign key, so, Mike, if you're changing things in there, adding
'not column.foreign_key' might be the go.
I'll write up a unit test for this issue later today.
Robert
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the
live webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?
cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Sqlalchemy-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Sqlalchemy-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users