-
-
Save anonymous/7997605274392aa54020 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In [8]: q = 'select * from user where id=%s' | |
In [9]: a = '1 union select * from user' | |
In [10]: sql = q % tuple([conn.literal(a)]) | |
In [11]: sql | |
Out[11]: "select * from user where id='1 union select * from user'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment