Re: psycopg2 gets confused by % characters and strict pyformat mode
Chris Cogdon <[email protected]>
| Newsgroups | gmane.comp.python.db.psycopg.devel |
|---|---|
| Message-ID | <[email protected]> |
why not do something like this:
cursor.execute ( "select * from t where s like %(match)s and k = %
(something)s",
{ 'match': '%whatever%', 'something':'else' } )
--
Chris Cogdon <[email protected]>
Chris: 650 242 3518
Truviso Inc. http://
www.truviso.com Switch: 650 242 3500
1065 E Hillsdale Blvd Suite 230 Foster City CA 94404 Fax: 650
242 3501