File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
lib/semmle/python/frameworks
test/library-tests/frameworks/asyncpg Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ private module Asyncpg {
22
22
// * - the result of `asyncpg.connect()` is awaited.
23
23
// * - the result of calling `acquire` on a `ConnectionPool` is awaited.
24
24
"asyncpg.Connection;asyncpg;Member[connect].ReturnValue.Awaited" ,
25
+ "asyncpg.Connection;asyncpg;Member[connection].Member[connect].ReturnValue.Awaited" ,
25
26
"asyncpg.Connection;asyncpg.ConnectionPool;Member[acquire].ReturnValue.Awaited" ,
26
27
// Creating an internal `~Connection` type that contains both `Connection` and `ConnectionPool`.
27
28
"asyncpg.~Connection;asyncpg.Connection;" , //
Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ async def test_connection():
22
22
finally :
23
23
await conn .close ()
24
24
25
+ conn = await asyncpg .connection .connect ()
26
+ conn .execute ("sql" ) # $ mad-sink[sql-injection]="sql"
27
+
25
28
26
29
async def test_prepared_statement ():
27
30
conn = await asyncpg .connect ()
You can’t perform that action at this time.
0 commit comments