]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fix execute calls for 2.0
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 6 Oct 2022 17:12:31 +0000 (13:12 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 6 Oct 2022 17:12:31 +0000 (13:12 -0400)
Change-Id: Iae802ed365544fb7154adc365776f017156b0108

examples/performance/short_selects.py

index 4e5c3eb00031e0e46e310946006e99d99d0ec726..afe11e141681064cef0ae7fd43cf74c1b6f750d8 100644 (file)
@@ -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)