projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75506e8
)
#15742: clarify sqlite parameter substitution example.
author
R David Murray
<rdmurray@bitdance.com>
Mon, 20 Aug 2012 18:14:18 +0000
(14:14 -0400)
committer
R David Murray
<rdmurray@bitdance.com>
Mon, 20 Aug 2012 18:14:18 +0000
(14:14 -0400)
Suggestion and patch by Mike Hoy.
Doc/library/sqlite3.rst
patch
|
blob
|
history
diff --git
a/Doc/library/sqlite3.rst
b/Doc/library/sqlite3.rst
index babbfa566fddbd21ad11f2738470e199b5f94d7d..950da9580b3b80915f2e469b08ac1f13686caa97 100644
(file)
--- 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