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 {
2222 // * - the result of `asyncpg.connect()` is awaited.
2323 // * - the result of calling `acquire` on a `ConnectionPool` is awaited.
2424 "asyncpg.Connection;asyncpg;Member[connect].ReturnValue.Awaited" ,
25+ "asyncpg.Connection;asyncpg;Member[connection].Member[connect].ReturnValue.Awaited" ,
2526 "asyncpg.Connection;asyncpg.ConnectionPool;Member[acquire].ReturnValue.Awaited" ,
2627 // Creating an internal `~Connection` type that contains both `Connection` and `ConnectionPool`.
2728 "asyncpg.~Connection;asyncpg.Connection;" , //
Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ async def test_connection():
2222 finally :
2323 await conn .close ()
2424
25+ conn = await asyncpg .connection .connect ()
26+ conn .execute ("sql" ) # $ mad-sink[sql-injection]="sql"
27+
2528
2629async def test_prepared_statement ():
2730 conn = await asyncpg .connect ()
You can’t perform that action at this time.
0 commit comments