diff options
author | Raymond Hettinger <python@rcn.com> | 2012-02-01 21:41:11 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2012-02-01 21:41:11 (GMT) |
commit | 1d231997910997c98ac952d56f9b02495708e504 (patch) | |
tree | b68c3d29200068c35a11e4810c5874b530ab44f4 /Doc | |
parent | 81a55c01b8bebf42f91d45a483b6c42f10b5506d (diff) | |
download | cpython-1d231997910997c98ac952d56f9b02495708e504.zip cpython-1d231997910997c98ac952d56f9b02495708e504.tar.gz cpython-1d231997910997c98ac952d56f9b02495708e504.tar.bz2 |
Use validate SQL in the example (this was confusing to readers)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/sqlite3.rst | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ example:: # 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,) |