From 1d231997910997c98ac952d56f9b02495708e504 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Wed, 1 Feb 2012 13:41:11 -0800 Subject: Use validate SQL in the example (this was confusing to readers) --- 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 b4d58b9..051ac92 100644 --- a/Doc/library/sqlite3.rst +++ b/Doc/library/sqlite3.rst @@ -59,7 +59,7 @@ example:: # Never do this -- insecure! symbol = 'IBM' - c.execute("... where symbol = '%s'" % symbol) + c.execute("select * from stocks where symbol = '%s'" % symbol) # Do this instead t = (symbol,) -- cgit v0.12