when the Session.is_active is True.
[ticket:2241]
+ - Fixed regression in new composite rewrite where
+ deferred=True option failed due to missing
+ import [ticket:2253]
+
- Fixed bug in query.join() which would occur
in a complex multiple-overlapping path scenario,
where the same table could be joined to
from sqlalchemy.orm.interfaces import \
MapperProperty, PropComparator, StrategizedProperty
from sqlalchemy.orm.mapper import _none_set
-from sqlalchemy.orm import attributes
+from sqlalchemy.orm import attributes, strategies
from sqlalchemy import util, sql, exc as sa_exc, event, schema
from sqlalchemy.sql import expression
properties = util.importlater('sqlalchemy.orm', 'properties')
m.add_property('start', sa.orm.composite(Point, 'x1', 'y1'))
m.add_property('end', sa.orm.composite(Point, 'x2', 'y2'))
- self._test_roundtrip()
\ No newline at end of file
+ self._test_roundtrip()
+
+ def test_deferred(self):
+ edge, Edge, Point = (self.tables.edge,
+ self.classes.Edge,
+ self.classes.Point)
+ mapper(Edge, edge, properties={
+ 'start':sa.orm.composite(Point, edge.c.x1, edge.c.y1,
+ deferred=True, group='s'),
+ 'end': sa.orm.composite(Point, edge.c.x2, edge.c.y2,
+ deferred=True)
+ })
+ self._test_roundtrip()