From 1a0a43513dc8fd7e29c83d445473322100c5eab4 Mon Sep 17 00:00:00 2001 From: larkee <31196561+larkee@users.noreply.github.com> Date: Tue, 14 Sep 2021 20:02:18 +1200 Subject: [PATCH] test: fix executemany call to use expected DBAPI formatting (#569) Co-authored-by: larkee --- tests/system/test_dbapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/system/test_dbapi.py b/tests/system/test_dbapi.py index c47aeebd82..f6af3c3763 100644 --- a/tests/system/test_dbapi.py +++ b/tests/system/test_dbapi.py @@ -280,7 +280,7 @@ def test_execute_many(shared_instance, dbapi_database): conn.commit() cursor.executemany( - """SELECT * FROM contacts WHERE contact_id = @a1""", ({"a1": 1}, {"a1": 2}), + """SELECT * FROM contacts WHERE contact_id = %s""", ((1,), (2,)), ) res = cursor.fetchall() conn.commit()