From f6bd1b0e0d290b1539e544fda0ab07564c9118a4 Mon Sep 17 00:00:00 2001 From: R David Murray Date: Mon, 20 Aug 2012 14:14:18 -0400 Subject: #15742: clarify sqlite parameter substitution example. Suggestion and patch by Mike Hoy. --- Doc/library/sqlite3.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v0.12