]> granicus.if.org Git - python/commitdiff
Use validate SQL in the example (this was confusing to readers)
authorRaymond Hettinger <python@rcn.com>
Wed, 1 Feb 2012 21:41:11 +0000 (13:41 -0800)
committerRaymond Hettinger <python@rcn.com>
Wed, 1 Feb 2012 21:41:11 +0000 (13:41 -0800)
Doc/library/sqlite3.rst

index b4d58b9b6890ebe8c80bd026c993143f19559ce1..051ac92ca7b45a46c103409387154df7831fd985 100644 (file)
@@ -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,)