mirror of https://github.com/python/cpython
Use validate SQL in the example (this was confusing to readers)
This commit is contained in:
parent
81a55c01b8
commit
1d23199791
|
@ -59,7 +59,7 @@ example::
|
||||||
|
|
||||||
# Never do this -- insecure!
|
# Never do this -- insecure!
|
||||||
symbol = 'IBM'
|
symbol = 'IBM'
|
||||||
c.execute("... where symbol = '%s'" % symbol)
|
c.execute("select * from stocks where symbol = '%s'" % symbol)
|
||||||
|
|
||||||
# Do this instead
|
# Do this instead
|
||||||
t = (symbol,)
|
t = (symbol,)
|
||||||
|
|
Loading…
Reference in New Issue