Re: Passing parameters to raw()

2013-05-24 Thread Roman Klesel
Oh wow! I didn't expect to enter such difficult terrain ... ;-) >From PEP-249 I understand that pyformat is encouraged and supported. I also read throug the discussion on the sig-db mailing list. As far as I understand you (Veron and many others) are trying to settle on what will be in the spec

Passing parameters to raw()

2013-05-22 Thread Roman Klesel
Hello, the docs say: """ Passing parameters into raw() If you need to perform parameterized queries, you can use the params argument to raw(): >>> lname = 'Doe' >>> Person.objects.raw('SELECT * FROM myapp_person WHERE last_name = %s', >>> [lname]) params is a list of parameters. You’ll use %