From: Andrew M. Kuchling Date: Wed, 7 Jun 2006 17:04:01 +0000 (+0000) Subject: Mention other placeholders X-Git-Tag: v2.5b1~215 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e275d3d4cec592369a9070eb7e5ee437d09da671;p=thirdparty%2FPython%2Fcpython.git Mention other placeholders --- diff --git a/Doc/lib/libsqlite3.tex b/Doc/lib/libsqlite3.tex index 512ae8838591..9545696da8b7 100644 --- a/Doc/lib/libsqlite3.tex +++ b/Doc/lib/libsqlite3.tex @@ -47,10 +47,11 @@ variables. You shouldn't assemble your query using Python's string operations because doing so is insecure; it makes your program vulnerable to an SQL injection attack. -Instead, use SQLite's parameter substitution. Put \samp{?} as a +Instead, use the DB-API's parameter substitution. Put \samp{?} as a placeholder wherever you want to use a value, and then provide a tuple of values as the second argument to the cursor's \method{execute()} -method. For example: +method. (Other database modules may use a different placeholder, +such as \samp{\%s} or \samp{:1}.) For example: \begin{verbatim} # Never do this -- insecure!