"optional" is a funny little flag i should change the name of, it
essentially means "use this Sequence only if the database *requires*
an explicit sequence to be created", which at the moment is only
Oracle. so "optional" should really be called "only_if_required" or
something like that.
On Mar 1, 2006, at 3:21 PM, Marko Mikulicic wrote:
I don't understand this default behaviour in postgres.py:
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"
more specifically the "isinstance(column.default, schema.Sequence)
and column.default.optional" part
shouldn't the SERIAL modifier be added when the default is *not*
optional, or I got this wrong?
-------------------------------------------------------
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
Sqlalchemy-users@lists.sourceforge.net
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
Sqlalchemy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users