given Column('status', String(1), default='A') Column('num', String(10), nullable=False, server_default='000')
try table.status.c.default.arg for sqlalchemy managed arguments or table.num.c.server_default.arg for database managed defaults "" Remember to test that the ".default" property actually exists; it won;t be there if the column has no default. For the server_default to work you need to either specify it in your sqlalchemy table definition or reflect the table from the database so sqlalchemy picks it up. You might also look at the inspector interface for schema in http://www.sqlalchemy.org/docs/core/schema.html -- Mike Conley -- 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.