diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2006-04-26 12:21:06 +0000 |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2006-04-26 12:21:06 +0000 |
commit | 7e5abb9d1f0d1b4df70e42e130c897baece3229e (patch) | |
tree | b1dc1af43579387b6bf252fb50b913fbb5999ca0 | |
parent | 790c3c13774eccc128e83b1545ce63c19bc81c0c (diff) | |
download | cpython-git-7e5abb9d1f0d1b4df70e42e130c897baece3229e.tar.gz |
[Bug #1475080] Fix example
-rw-r--r-- | Doc/whatsnew/whatsnew25.tex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/whatsnew/whatsnew25.tex b/Doc/whatsnew/whatsnew25.tex index 96d71dabb3..e316a00107 100644 --- a/Doc/whatsnew/whatsnew25.tex +++ b/Doc/whatsnew/whatsnew25.tex @@ -1827,7 +1827,7 @@ c.execute("... where symbol = '%s'" % symbol) # Do this instead t = (symbol,) -c.execute('select * from stocks where symbol=?', ('IBM',)) +c.execute('select * from stocks where symbol=?', t) # Larger example for t in (('2006-03-28', 'BUY', 'IBM', 1000, 45.00), @@ -2065,6 +2065,6 @@ freed with the corresponding family's \cfunction{*_Free()} function. The author would like to thank the following people for offering suggestions, corrections and assistance with various drafts of this article: Phillip J. Eby, Kent Johnson, Martin von~L\"owis, Gustavo -Niemeyer, Mike Rovner, Thomas Wouters. +Niemeyer, James Pryor, Mike Rovner, Thomas Wouters. \end{document} |