From: R David Murray Date: Mon, 20 Aug 2012 18:17:22 +0000 (-0400) Subject: #15742: clarify sqlite parameter substitution example. X-Git-Tag: v2.7.4rc1~621 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=07f6ea550656615862718e31253f119a9bb9d82c;p=thirdparty%2FPython%2Fcpython.git #15742: clarify sqlite parameter substitution example. --- diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst index 683700dcc67e..978b7603ee5e 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()