From: Mike Bayer Date: Thu, 6 Oct 2022 17:12:31 +0000 (-0400) Subject: fix execute calls for 2.0 X-Git-Tag: rel_2_0_0b1~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d71cd35133f204370af4bef7db2285613770ea1;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git fix execute calls for 2.0 Change-Id: Iae802ed365544fb7154adc365776f017156b0108 --- 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)