Merge "use union all when building trait query"

This commit is contained in:
Jenkins 2015-08-17 20:34:40 +00:00 committed by Gerrit Code Review
commit 0d39daa881

View File

@ -282,7 +282,7 @@ class Connection(base.Connection):
sa.cast(sa.null(), sa.String(255)))
.filter(sa.exists().where(
models.TraitDatetime.event_id == query.subquery().c.id))
).union(
).union_all(
session.query(
models.TraitInt.event_id,
models.TraitInt.key, sa.null(),