[sqlalchemy] integer fields return long python type on query

2010-02-10 Thread Simone Orsi
Hi all, I have a lot of integer fields in a mysql db and when I query them I get always a long python type instead of an integer python type. Is quite annoying to convert long to int every time... how can I get rid of this? I remember that with mysql-python you can pass an instance of

Re: [sqlalchemy] integer fields return long python type on query

2010-02-10 Thread Michael Bayer
On Feb 10, 2010, at 5:12 AM, Simone Orsi wrote: Hi all, I have a lot of integer fields in a mysql db and when I query them I get always a long python type instead of an integer python type. Is quite annoying to convert long to int every time... how can I get rid of this? I remember