- added a random generative select() to a test (need to add the real tests to either select.py or generative.py)
else:
obj = self._check_literal(obj)
- return _BinaryExpression(self._compare_self(), obj, operator, type=self._compare_type(obj), negate=negate)
+ return _BinaryExpression(self._compare_self(), obj, operator, type=sqltypes.Boolean, negate=negate)
def _operate(self, operator, obj):
if _is_literal(obj):
l = q.all()
assert l == expected
- s = select([users, func.count(addresses.c.id).label('count')], from_obj=[users.outerjoin(addresses)], group_by=[c for c in users.c], order_by=[users.c.id])
+ s = select([users, func.count(addresses.c.id).label('count')]).select_from(users.outerjoin(addresses)).group_by(*[c for c in users.c]).order_by(users.c.id)
q = sess.query(User)
l = q.instances(s.execute(), "count")
assert l == expected