From: R David Murray Date: Mon, 20 Aug 2012 18:14:18 +0000 (-0400) Subject: #15742: clarify sqlite parameter substitution example. X-Git-Tag: v3.3.0rc1~57^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f6bd1b0e0d290b1539e544fda0ab07564c9118a4;p=thirdparty%2FPython%2Fcpython.git #15742: clarify sqlite parameter substitution example. Suggestion and patch by Mike Hoy. --- diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst index babbfa566fdd..950da9580b3b 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