error message when executed against multiple entities.
[ticket:1220]
+ - Restored NotImplementedError on Cls.relation.in_()
+ [ticket:1140] [ticket:1221]
+
- sql
- Removed the 'properties' attribute of the
Connection object, Connection.info should be used.
def of_type(self, cls):
return PropertyLoader.Comparator(self.prop, self.mapper, cls)
+ def in_(self, other):
+ raise NotImplementedError("in_() not yet supported for relations. For a "
+ "simple many-to-one, use in_() against the set of foreign key values.")
+
def __eq__(self, other):
if other is None:
if self.prop.direction in [ONETOMANY, MANYTOMANY]:
self._test(User.id.in_(['a', 'b']),
"users.id IN (:id_1, :id_2)")
+ def test_in_on_relation_not_supported(self):
+ self.assertRaises(NotImplementedError, Address.user.in_, [User(id=5)])
+
def test_between(self):
self._test(User.id.between('a', 'b'),
"users.id BETWEEN :id_1 AND :id_2")