Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Checkins

cpython (3.2): #15742: clarify sqlite parameter substitution example.

 

 

Python checkins RSS feed   Index | Next | Previous | View Threaded


python-checkins at python

Aug 20, 2012, 11:17 AM

Post #1 of 1 (22 views)
Permalink
cpython (3.2): #15742: clarify sqlite parameter substitution example.

http://hg.python.org/cpython/rev/80b15cf2611e
changeset: 78679:80b15cf2611e
branch: 3.2
parent: 78677:b96a4b1e7ecb
user: R David Murray <rdmurray [at] bitdance>
date: Mon Aug 20 14:14:18 2012 -0400
summary:
#15742: clarify sqlite parameter substitution example.

Suggestion and patch by Mike Hoy.

files:
Doc/library/sqlite3.rst | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst
--- a/Doc/library/sqlite3.rst
+++ b/Doc/library/sqlite3.rst
@@ -60,7 +60,7 @@
c.execute("select * from stocks where symbol = '%s'" % symbol)

# Do this instead
- t = (symbol,)
+ t = ('IBM',)
c.execute('select * from stocks where symbol=?', t)

# Larger example

--
Repository URL: http://hg.python.org/cpython

Python checkins RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.