commit | 1d231997910997c98ac952d56f9b02495708e504 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Wed Feb 01 13:41:11 2012 -0800 |
committer | Raymond Hettinger <python@rcn.com> | Wed Feb 01 13:41:11 2012 -0800 |
tree | b68c3d29200068c35a11e4810c5874b530ab44f4 | |
parent | 81a55c01b8bebf42f91d45a483b6c42f10b5506d [diff] [blame] |
Use validate SQL in the example (this was confusing to readers)
diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst index b4d58b9..051ac92 100644 --- a/Doc/library/sqlite3.rst +++ b/Doc/library/sqlite3.rst
@@ -59,7 +59,7 @@ # Never do this -- insecure! symbol = 'IBM' - c.execute("... where symbol = '%s'" % symbol) + c.execute("select * from stocks where symbol = '%s'" % symbol) # Do this instead t = (symbol,)