summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2012-08-20 18:14:18 (GMT)
committerR David Murray <rdmurray@bitdance.com>2012-08-20 18:14:18 (GMT)
commitf6bd1b0e0d290b1539e544fda0ab07564c9118a4 (patch)
tree1de57ead5f1717be70c92ca895ae4e86e4ba15cc /Doc
parent75506e8b7cc1b21fd10997e4e5d382c515558fa8 (diff)
downloadcpython-f6bd1b0e0d290b1539e544fda0ab07564c9118a4.zip
cpython-f6bd1b0e0d290b1539e544fda0ab07564c9118a4.tar.gz
cpython-f6bd1b0e0d290b1539e544fda0ab07564c9118a4.tar.bz2
#15742: clarify sqlite parameter substitution example.
Suggestion and patch by Mike Hoy.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/sqlite3.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst
index babbfa5..950da95 100644
--- a/Doc/library/sqlite3.rst
+++ b/Doc/library/sqlite3.rst
@@ -60,7 +60,7 @@ example::
c.execute("select * from stocks where symbol = '%s'" % symbol)
# Do this instead
- t = (symbol,)
+ t = ('IBM',)
c.execute('select * from stocks where symbol=?', t)
# Larger example