@@ -266,6 +266,27 @@ def test_fully_qualified_table_name():
266266 assert "SELECT FROM db.schema.mytable" == actual
267267
268268
269+ @pytest .mark .integrationtest
270+ @pytest .mark .skipif (not has_postgres_configured , reason = "PostgresSQL not configured" )
271+ def test_cursor_execute_signature (instrument , postgres_connection , elasticapm_client ):
272+ cursor = postgres_connection .cursor ()
273+ cursor .execute (query = "SELECT 1" , vars = None )
274+ row = cursor .fetchone ()
275+
276+ assert row
277+
278+
279+ @pytest .mark .integrationtest
280+ @pytest .mark .skipif (not has_postgres_configured , reason = "PostgresSQL not configured" )
281+ def test_cursor_executemany_signature (instrument , postgres_connection , elasticapm_client ):
282+ cursor = postgres_connection .cursor ()
283+ res = cursor .executemany (
284+ query = "INSERT INTO test VALUES (%s, %s)" ,
285+ vars_list = ((4 , "four" ),),
286+ )
287+ assert res is None
288+
289+
269290@pytest .mark .integrationtest
270291@pytest .mark .skipif (not has_postgres_configured , reason = "PostgresSQL not configured" )
271292def test_destination (instrument , postgres_connection , elasticapm_client ):
0 commit comments