Closed kalombos closed 7 years ago
Thanks @kalombos for the bug report.
Indeed sqlalchemy.dialects.postgresql.JSON has been introduced in SQLAlchemy 0.9.0.
We can either bump the minimal SQLAlchemy version to 0.9.0 or do a try/except to disable the Pg JSON support is SQLAlchemy is too old. @nicolaiarocci, what do you prefer?
I would prefer to use >0.9
as it was released in March 2013, more or less when python-eve
was released ;-)
So we need a try/expect to catch the exception. @amleczko You should keep the bug opened :-).
Well instead of try-except I would pin the sqlalchemy to >0.9
but I agree it should be added.
The line
raises an exception:
because sqlalchemy v0.8 does not support JSON for postgresql yet. Tested on SQLAlchemy==0.8.3