- changed milestone to 0.9.7
add __clause_element__() to column_property
Issue #3066
wontfix
from #3050
diff --git a/lib/sqlalchemy/orm/properties.py b/lib/sqlalchemy/orm/properties.py
index a0def7d..26196c1 100644
--- a/lib/sqlalchemy/orm/properties.py
+++ b/lib/sqlalchemy/orm/properties.py
@@ -148,6 +148,9 @@ class ColumnProperty(StrategizedProperty):
("instrument", self.instrument)
)
+ def __clause_element__(self):
+ return self.expression
+
@property
def expression(self):
"""Return the primary column or expression for this ColumnProperty.
Comments (4)
-
reporter -
reporter I'm a little nervous about this in 0.9 so pushing to 1.0. using col.expression works in 0.9
-
reporter this needs a use case. I'm not even sure what it is at this point, too bad I didn't add it. deferring this for now.
-
reporter - changed status to wontfix
can't find a use case for this right now.
- Log in to comment