I have a model using the new PostgreSQL HSTORE support added to SQLAlchemy 0.8:
class Gateway(Base):
__tablename__ = 'gateway'
id = Column(Integer, primary_key=True)
access = Column(Mutable.as_mutable(HSTORE), nullable=False, unique=True)
But when I run session.query(Gateway).all()
, the following exception is raised:
ValueError: Attribute 'access' does not accept objects of type <type 'dict'>
Could you help me to solve this problem?