[Python-checkins] cpython (2.7): Use validate SQL in the example (this was confusing to readers)
raymond.hettinger
python-checkins at python.org
Wed Feb 1 22:41:14 CET 2012
http://hg.python.org/cpython/rev/f8ecf10a7c73
changeset: 74718:f8ecf10a7c73
branch: 2.7
user: Raymond Hettinger <python at rcn.com>
date: Wed Feb 01 13:41:11 2012 -0800
summary:
Use validate SQL in the example (this was confusing to readers)
files:
Doc/library/sqlite3.rst | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst
--- 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,)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list