Re: [sqlalchemy] sqlalchemy.exc.DataError: (psycopg2.DataError) integer out of range

2015-07-14 Thread Chengjun JIN
Hi Michael, Thanks for your time. I have figured out the problem. My error is not related to the data type, as you pointed out. It is related to the definition of the TABLE column repeatedly and inconsistently (meaning: initially I define the column as Integer in the database, then I changed

[sqlalchemy] Re: How to jsonify Query result?

2015-07-14 Thread sector119
I create Serializer class and use it for all my models with: Base = declarative_base(cls=Serializer) But I have one problem! I have Organization model and Service model that has organization = relationship('Organization', backref='services') relationship and I get RuntimeError: maximum