mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
Note: I kept the modeling using the old approach with type-trackers instead of `DataFlow::MethodCallNode`. I would like a meta query for DCA to show sinks before doing this, so I can be absolutely sure we don't loose out on any important sinks on this... so will postpone this work to a small one-off task (added to my todo list).
7 lines
244 B
Python
7 lines
244 B
Python
import pymysql
|
|
connection = pymysql.connect(host="localhost", user="user", password="passwd")
|
|
|
|
cursor = connection.cursor()
|
|
cursor.execute("some sql", (42,)) # $ getSql="some sql"
|
|
cursor.executemany("some sql", [(42,)]) # $ getSql="some sql"
|