Files
codeql/python/ql/test/experimental/library-tests/frameworks/mysqldb/pep249.py
Rasmus Lerchedahl Petersen ea74c7f12b Python: add tests
2020-11-02 17:59:51 +01:00

7 lines
226 B
Python

# taken from https://mysqlclient.readthedocs.io/user_guide.html#some-examples
import MySQLdb
db=MySQLdb.connect(passwd="moonpie",db="thangs")
c=db.cursor()
max_price=5
c.execute("some sql", (max_price,)) # $getSql="some sql"