mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Merge #15742: clarify sqlite parameter substitution example.
Suggestion and patch by Mike Hoy.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user