[Sqlalchemy-tickets] [sqlalchemy] #2755: composite w/ aliases broken
Brought to you by:
zzzeek
|
From: sqlalchemy <mi...@zz...> - 2013-06-10 16:58:28
|
#2755: composite w/ aliases broken
--------------------+------------------------------------
Reporter: zzzeek | Owner: zzzeek
Type: defect | Status: new
Priority: high | Milestone: 0.8.xx
Component: orm | Severity: major - 1-3 hours
Keywords: | Progress State: in progress
--------------------+------------------------------------
{{{
def test_comparator_aliased(self):
+ Graph, Edge, Point = (self.classes.Graph,
+ self.classes.Edge,
+ self.classes.Point)
+
+ sess = self._fixture()
+
+ g = sess.query(Graph).first()
+ ea = aliased(Edge)
+ assert sess.query(ea).\
+ filter(ea.start != Point(3, 4)).first() is \
+ g.edges[1]
+
+
}}}
--
Ticket URL: <http://www.sqlalchemy.org/trac/ticket/2755>
sqlalchemy <http://www.sqlalchemy.org/>
The Database Toolkit for Python
|