diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-10-06 13:12:31 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-10-06 13:12:31 -0400 |
| commit | 1d71cd35133f204370af4bef7db2285613770ea1 (patch) | |
| tree | d6bf31333d09f9366fa2bef579b16162c8bcb6fb | |
| parent | 276349200c486eee108471b888acfc47ea19201b (diff) | |
| download | sqlalchemy-1d71cd35133f204370af4bef7db2285613770ea1.tar.gz | |
fix execute calls for 2.0
Change-Id: Iae802ed365544fb7154adc365776f017156b0108
| -rw-r--r-- | examples/performance/short_selects.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/performance/short_selects.py b/examples/performance/short_selects.py index 4e5c3eb00..afe11e141 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) |
