[Python-checkins] cpython (2.7): #15742: clarify sqlite parameter substitution example.
r.david.murray
python-checkins at python.org
Mon Aug 20 20:18:36 CEST 2012
http://hg.python.org/cpython/rev/857c9e1fdd1e
changeset: 78681:857c9e1fdd1e
branch: 2.7
parent: 78676:2b4f6770877e
user: R David Murray <rdmurray at bitdance.com>
date: Mon Aug 20 14:17:22 2012 -0400
summary:
#15742: clarify sqlite parameter substitution example.
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
@@ -67,7 +67,7 @@
c.execute("SELECT * FROM stocks WHERE symbol = '%s'" % symbol)
# Do this instead
- t = (symbol,)
+ t = ('RHAT',)
c.execute('SELECT * FROM stocks WHERE symbol=?', t)
print c.fetchone()
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list