diff Doc/lib/libsqlite3.tex @ 38642:3fb38351dd39 legacy-trunk

Mention other placeholders
author Andrew M. Kuchling <amk@amk.ca>
date Wed, 07 Jun 2006 17:04:01 +0000
parents 0cd2273bc3b1
children f28f9c15e2d0
line wrap: on
line diff
--- a/Doc/lib/libsqlite3.tex	Wed Jun 07 17:03:46 2006 +0000
+++ b/Doc/lib/libsqlite3.tex	Wed Jun 07 17:04:01 2006 +0000
@@ -47,10 +47,11 @@
 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!