- attached sqla_hstore.py
PostgreSQL HSTORE field value updates do not mark object as dirty
Issue #2634
resolved
It seems that when changing value of the key in the HSTORE field, the object isn't marked dirty.
Simple testcase is here: https://gist.github.com/4277752
Comments (2)
-
reporter -
repo owner - changed status to wontfix
try it like this:
from sqlalchemy.ext.mutable import MutableDict class C(Base): __tablename__ = 'foo' id = Column(Integer, primary_key=True) hashes = Column(MutableDict.as_mutable(HSTORE), server_default=text("''::hstore"))
see the 4th paragraph/example at: http://docs.sqlalchemy.org/en/rel_0_8/dialects/postgresql.html?highlight=hstore#sqlalchemy.dialects.postgresql.HSTORE
- Log in to comment
sqla_hstore.py