From 1d71cd35133f204370af4bef7db2285613770ea1 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Thu, 6 Oct 2022 13:12:31 -0400 Subject: [PATCH] fix execute calls for 2.0 Change-Id: Iae802ed365544fb7154adc365776f017156b0108 --- examples/performance/short_selects.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/performance/short_selects.py b/examples/performance/short_selects.py index 4e5c3eb000..afe11e1416 100644 --- a/examples/performance/short_selects.py +++ b/examples/performance/short_selects.py @@ -186,7 +186,7 @@ def test_core_reuse_stmt(n): with engine.connect() as conn: for id_ in random.sample(ids, n): - row = conn.execute(stmt, id=id_).first() + row = conn.execute(stmt, {"id": id_}).first() tuple(row) @@ -200,7 +200,7 @@ def test_core_reuse_stmt_compiled_cache(n): compiled_cache=compiled_cache ) as conn: for id_ in random.sample(ids, n): - row = conn.execute(stmt, id=id_).first() + row = conn.execute(stmt, {"id": id_}).first() tuple(row) -- 2.47.3