summaryrefslogtreecommitdiff
path: root/test/perf/ormsession.py
diff options
context:
space:
mode:
authorAnts Aasma <ants.aasma@gmail.com>2007-10-16 22:57:05 +0000
committerAnts Aasma <ants.aasma@gmail.com>2007-10-16 22:57:05 +0000
commit6bbc7dd157faf5b513852286ba656fa6723cd2d6 (patch)
tree805fc72fd0053fa4eeedc1b72e9ab55651a177c2 /test/perf/ormsession.py
parentcc0e7c796f61e17cb7050de0701905c65ce558eb (diff)
downloadsqlalchemy-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.py4
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