From: Raymond Hettinger Date: Wed, 1 Feb 2012 21:41:11 +0000 (-0800) Subject: Use validate SQL in the example (this was confusing to readers) X-Git-Tag: v2.7.3rc1~105 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1d231997910997c98ac952d56f9b02495708e504;p=thirdparty%2FPython%2Fcpython.git Use validate SQL in the example (this was confusing to readers) --- diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst index b4d58b9b6890..051ac92ca7b4 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,)