#15742: clarify sqlite parameter substitution example.

This commit is contained in:
R David Murray 2012-08-20 14:17:22 -04:00
parent a8857af37b
commit 07f6ea5506

View file

@ -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()