Commit 753a0f9e authored by R David Murray's avatar R David Murray

#15742: clarify sqlite parameter substitution example.

Suggestion and patch by Mike Hoy.
parent 9c542e08
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment