#15742: clarify sqlite parameter substitution example.
authorR David Murray <rdmurray@bitdance.com>
Mon, 20 Aug 2012 18:14:18 +0000 (14:14 -0400)
committerR 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

index babbfa566fddbd21ad11f2738470e199b5f94d7d..950da9580b3b80915f2e469b08ac1f13686caa97 100644 (file)
@@ -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