>>> metadata = BoundMetaData('sqlite:///:memory:')
>>> metadata.engine.echo = True
>>> t = Table('sqlalchemy_test', metadata,
... Column('int_1', Integer, ColumnDefault(10)),
... Column('int_2', Integer, default=10),
... Column('str_1', String, ColumnDefault('hello')),
... Column('str_2', String, default='hello'))
>>> t.create()
2006-11-05 12:25:36,203 INFO sqlalchemy.engine.base.Engine.0x..f0
CREATE TABLE sqlalchemy_test (
        int_1 INTEGER,
        int_2 INTEGER,
        str_1 TEXT,
        str_2 TEXT
)

If we insert from using SQLAlchemy and we will have the defaults, but
they
are missing from the database structure.

Is this the expected behavior?

Tested on MySQL 4.1 / 5.0 with the same results so I don't think it's a
dialect problem.

I'll start browsing the code to find a solution, a couple of pointers
could help.


--~--~---------~--~----~------------~-------~--~----~
 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to