mirror of
https://github.com/python/cpython
synced 2026-09-29 11:55:30 +03:00
#15742: clarify sqlite parameter substitution example.
Suggestion and patch by Mike Hoy.
This commit is contained in:
parent
75506e8b7c
commit
f6bd1b0e0d
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ example::
|
|||
c.execute("select * from stocks where symbol = '%s'" % symbol)
|
||||
|
||||
# Do this instead
|
||||
t = (symbol,)
|
||||
t = ('IBM',)
|
||||
c.execute('select * from stocks where symbol=?', t)
|
||||
|
||||
# Larger example
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue