mirror of
https://github.com/python/cpython.git
synced 2025-08-19 08:11:46 +00:00
Use validate SQL in the example (this was confusing to readers)
This commit is contained in:
parent
81a55c01b8
commit
1d23199791
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ example::
|
|||
|
||||
# Never do this -- insecure!
|
||||
symbol = 'IBM'
|
||||
c.execute("... where symbol = '%s'" % symbol)
|
||||
c.execute("select * from stocks where symbol = '%s'" % symbol)
|
||||
|
||||
# Do this instead
|
||||
t = (symbol,)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue