Re: [sqlalchemy] CreateTable display is not right for autoincrement in mysql

2013-10-05 Thread Michael Bayer
On Oct 5, 2013, at 1:58 AM, limodou limo...@gmail.com wrote: Today I found if I have an id column in a table, and the autoincrement attribute is True, when I created the table it's right, but when I print the create statment is not right for autoincrement. The testing code is: from

Re: [sqlalchemy] CreateTable display is not right for autoincrement in mysql

2013-10-05 Thread limodou
Thank you very much. This fixes my problem. So it's not a bug? On Sat, Oct 5, 2013 at 2:17 PM, Michael Bayer mike...@zzzcomputing.comwrote: On Oct 5, 2013, at 1:58 AM, limodou limo...@gmail.com wrote: Today I found if I have an id column in a table, and the autoincrement attribute is True,

[sqlalchemy] CreateTable display is not right for autoincrement in mysql

2013-10-04 Thread limodou
Today I found if I have an id column in a table, and the autoincrement attribute is True, when I created the table it's right, but when I print the create statment is not right for autoincrement. The testing code is: from sqlalchemy import * from sqlalchemy.schema import CreateTable engine =