summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/postgresql/hstore.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2014-05-25 13:58:08 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2014-05-25 13:58:08 -0400
commite384347ffb9b29fca146df54284e96a567adae9c (patch)
treebac85461583669e0e149407934ba97182fefd610 /lib/sqlalchemy/dialects/postgresql/hstore.py
parent95b10c4e8e59cf2509ba5d90a03341d74f93d164 (diff)
downloadsqlalchemy-e384347ffb9b29fca146df54284e96a567adae9c.tar.gz
- Added the ``hashable=False`` flag to the PG :class:`.HSTORE` type, which
is needed to allow the ORM to skip over trying to "hash" an ORM-mapped HSTORE column when requesting it in a mixed column/entity list. Patch courtesy Gunnlaugur Þór Briem. Fixes #3053
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/hstore.py')
-rw-r--r--lib/sqlalchemy/dialects/postgresql/hstore.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/hstore.py b/lib/sqlalchemy/dialects/postgresql/hstore.py
index 74419460b..ee2c654a3 100644
--- a/lib/sqlalchemy/dialects/postgresql/hstore.py
+++ b/lib/sqlalchemy/dialects/postgresql/hstore.py
@@ -180,6 +180,7 @@ class HSTORE(sqltypes.Concatenable, sqltypes.TypeEngine):
"""
__visit_name__ = 'HSTORE'
+ hashable = False
class comparator_factory(sqltypes.Concatenable.Comparator):
"""Define comparison operations for :class:`.HSTORE`."""