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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.