diff options
author | R David Murray <rdmurray@bitdance.com> | 2012-08-20 14:17:22 -0400 |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2012-08-20 14:17:22 -0400 |
commit | 07f6ea550656615862718e31253f119a9bb9d82c (patch) | |
tree | 0e32cf2fff05ded390927507be72d6dacd33d7e9 | |
parent | a8857af37b483b8d8f6340dfcc0cc5c46afd412a (diff) | |
download | cpython-git-07f6ea550656615862718e31253f119a9bb9d82c.tar.gz |
#15742: clarify sqlite parameter substitution example.
-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 683700dcc6..978b7603ee 100644 --- a/Doc/library/sqlite3.rst +++ b/Doc/library/sqlite3.rst @@ -67,7 +67,7 @@ example:: 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() |