@@ -7,11 +7,11 @@ async def test_connection():
77 try :
88 # The file-like object is passed in as a keyword-only argument.
99 # See https://magicstack.github.io/asyncpg/current/api/index.html#asyncpg.connection.Connection.copy_from_query
10- await conn .copy_from_query ("sql" , output = "filepath" ) # $ mad-sink__sql-injection="sql" mad-sink__file-access="filepath" getAPathArgument ="filepath"
11- await conn .copy_from_query ("sql" , "arg1" , "arg2" , output = "filepath" ) # $ mad-sink__sql-injection="sql" mad-sink__file-access="filepath" getAPathArgument ="filepath"
10+ await conn .copy_from_query ("sql" , output = "filepath" ) # $ mad-sink__sql-injection="sql" mad-sink__path-injection ="filepath"
11+ await conn .copy_from_query ("sql" , "arg1" , "arg2" , output = "filepath" ) # $ mad-sink__sql-injection="sql" mad-sink__path-injection ="filepath"
1212
13- await conn .copy_from_table ("table" , output = "filepath" ) # $ mad-sink__file-access="filepath" getAPathArgument ="filepath"
14- await conn .copy_to_table ("table" , source = "filepath" ) # $ mad-sink__file-access="filepath" getAPathArgument ="filepath"
13+ await conn .copy_from_table ("table" , output = "filepath" ) # $ mad-sink__path-injection ="filepath"
14+ await conn .copy_to_table ("table" , source = "filepath" ) # $ mad-sink__path-injection ="filepath"
1515
1616 await conn .execute ("sql" ) # $ mad-sink__sql-injection="sql"
1717 await conn .executemany ("sql" ) # $ mad-sink__sql-injection="sql"
@@ -69,10 +69,10 @@ async def test_connection_pool():
6969 pool = await asyncpg .create_pool ()
7070
7171 try :
72- await pool .copy_from_query ("sql" , output = "filepath" ) # $ mad-sink__sql-injection="sql" mad-sink__file-access="filepath" getAPathArgument ="filepath"
73- await pool .copy_from_query ("sql" , "arg1" , "arg2" , output = "filepath" ) # $ mad-sink__sql-injection="sql" mad-sink__file-access="filepath" getAPathArgument ="filepath"
74- await pool .copy_from_table ("table" , output = "filepath" ) # $ mad-sink__file-access="filepath" getAPathArgument ="filepath"
75- await pool .copy_to_table ("table" , source = "filepath" ) # $ mad-sink__file-access="filepath" getAPathArgument ="filepath"
72+ await pool .copy_from_query ("sql" , output = "filepath" ) # $ mad-sink__sql-injection="sql" mad-sink__path-injection ="filepath"
73+ await pool .copy_from_query ("sql" , "arg1" , "arg2" , output = "filepath" ) # $ mad-sink__sql-injection="sql" mad-sink__path-injection ="filepath"
74+ await pool .copy_from_table ("table" , output = "filepath" ) # $ mad-sink__path-injection ="filepath"
75+ await pool .copy_to_table ("table" , source = "filepath" ) # $ mad-sink__path-injection ="filepath"
7676
7777 await pool .execute ("sql" ) # $ mad-sink__sql-injection="sql"
7878 await pool .executemany ("sql" ) # $ mad-sink__sql-injection="sql"
0 commit comments