diff options
| author | Ants Aasma <ants.aasma@gmail.com> | 2007-10-16 22:57:05 +0000 |
|---|---|---|
| committer | Ants Aasma <ants.aasma@gmail.com> | 2007-10-16 22:57:05 +0000 |
| commit | 6bbc7dd157faf5b513852286ba656fa6723cd2d6 (patch) | |
| tree | 805fc72fd0053fa4eeedc1b72e9ab55651a177c2 /test/perf/ormsession.py | |
| parent | cc0e7c796f61e17cb7050de0701905c65ce558eb (diff) | |
| download | sqlalchemy-6bbc7dd157faf5b513852286ba656fa6723cd2d6.tar.gz | |
change the in_ API to accept a sequence or a selectable [ticket:750]
Diffstat (limited to 'test/perf/ormsession.py')
| -rw-r--r-- | test/perf/ormsession.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/perf/ormsession.py b/test/perf/ormsession.py index a9d310ef6..3cd21ea98 100644 --- a/test/perf/ormsession.py +++ b/test/perf/ormsession.py @@ -174,7 +174,7 @@ def run_queries(): order_by=[desc(func.count(_item_id)), _item_id], limit=20) ids = [r.id for r in top_20_q.execute().fetchall()] - q2 = session.query(Item).filter(Item.id.in_(*ids)) + q2 = session.query(Item).filter(Item.id.in_(ids)) for num, item in enumerate(q2): report.append("number %s: %s" % (num + 1, item.name)) @@ -189,7 +189,7 @@ def create_purchase(): session.begin() customer = session.query(Customer).get(customer_id) - items = session.query(Item).filter(Item.id.in_(*item_ids)) + items = session.query(Item).filter(Item.id.in_(item_ids)) purchase = Purchase() purchase.customer = customer |
