diff options
author | R David Murray <rdmurray@bitdance.com> | 2012-08-20 18:14:18 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2012-08-20 18:14:18 (GMT) |
commit | f6bd1b0e0d290b1539e544fda0ab07564c9118a4 (patch) | |
tree | 1de57ead5f1717be70c92ca895ae4e86e4ba15cc /Doc | |
parent | 75506e8b7cc1b21fd10997e4e5d382c515558fa8 (diff) | |
download | cpython-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.rst | 2 |
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 |