Commit 1d231997 authored by Raymond Hettinger's avatar Raymond Hettinger

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

parent 81a55c01
...@@ -59,7 +59,7 @@ example:: ...@@ -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,)
......
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