Use validate SQL in the example (this was confusing to readers)

This commit is contained in:
Raymond Hettinger 2012-02-01 13:41:11 -08:00
parent 81a55c01b8
commit 1d23199791
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ example::
# Never do this -- insecure! # Never do this -- insecure!
symbol = 'IBM' symbol = 'IBM'
c.execute("... where symbol = '%s'" % symbol) c.execute("select * from stocks where symbol = '%s'" % symbol)
# Do this instead # Do this instead
t = (symbol,) t = (symbol,)