Commit 07f6ea55 authored by R David Murray's avatar R David Murray

#15742: clarify sqlite parameter substitution example.

parent a8857af3
......@@ -67,7 +67,7 @@ example::
c.execute("SELECT * FROM stocks WHERE symbol = '%s'" % symbol)
# Do this instead
t = (symbol,)
t = ('RHAT',)
c.execute('SELECT * FROM stocks WHERE symbol=?', t)
print c.fetchone()
......
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